summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}