From 79d22a9ad685a0b0b029897b38a64658097bb68a Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 14 Mar 2013 16:48:13 +0000 Subject: support html mails in it::mail --- it.class | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'it.class') 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); } -- cgit v1.2.3