diff options
-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); } |