summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2013-03-14 16:48:13 +0000
committerUrban Müller2013-03-14 16:48:13 +0000
commit79d22a9ad685a0b0b029897b38a64658097bb68a (patch)
tree468982c5c621630bac1c5e45f7cf65725498902a
parent9154cc6fa222b08bf023b35b4025cd3c8e9fa83d (diff)
downloaditools-79d22a9ad685a0b0b029897b38a64658097bb68a.tar.gz
itools-79d22a9ad685a0b0b029897b38a64658097bb68a.tar.bz2
itools-79d22a9ad685a0b0b029897b38a64658097bb68a.zip
support html mails in it::mail
-rw-r--r--it.class5
1 files changed, 3 insertions, 2 deletions
diff --git a/it.class b/it.class
index 9a74329..196b999 100644
--- a/it.class
+++ b/it.class
@@ -831,16 +831,17 @@ static function map($expression, $array)
/**
* Send a mail.
- * @param $p Header => Content pairs with Body => for the mail body
+ * @param $p Header => Content (e.g To => me@search.ch, Body => bodytext, Html => htmlbodytext)
* @param $p['forcemail'] Send this mail even if we're on a twin or devel machine
* @return nothing useful
*/
static function mail($p)
{
$headers = $p;
- unset($headers['forcemail'], $headers['Body']);
+ unset($headers['forcemail'], $headers['Body'], $headers['Html']);
$mail = new it_mail(array_filter($headers));
$mail->add_body($p['Body']);
+ $mail->add_body($p['Html'], IT_MAIL_HTML);
return $mail->send($p);
}