diff options
author | Urban Müller | 2013-03-14 16:48:13 +0000 |
---|---|---|
committer | Urban Müller | 2013-03-14 16:48:13 +0000 |
commit | 79d22a9ad685a0b0b029897b38a64658097bb68a (patch) | |
tree | 468982c5c621630bac1c5e45f7cf65725498902a | |
parent | 9154cc6fa222b08bf023b35b4025cd3c8e9fa83d (diff) | |
download | itools-79d22a9ad685a0b0b029897b38a64658097bb68a.tar.gz itools-79d22a9ad685a0b0b029897b38a64658097bb68a.tar.bz2 itools-79d22a9ad685a0b0b029897b38a64658097bb68a.zip |
support html mails in it::mail
-rw-r--r-- | it.class | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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); } |