From 0ba45eb74543fc6377c48ac17d8b632e431e9467 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 24 Feb 2012 08:50:42 +0100 Subject: Sending mail as multipart/alternative (html and plain text) (very basic by now) --- include/email.php | 41 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) (limited to 'include/email.php') diff --git a/include/email.php b/include/email.php index 452682260..fee3e2f68 100755 --- a/include/email.php +++ b/include/email.php @@ -1,4 +1,5 @@ ' . $html . ''; + //$message = html2plain($html); + logger('notifier: email delivery to ' . $addr); + mail($addr, $subject, $body, $headers); +} + +function email_cleanupmessageid($messageid) { + global $a; + + if (!strpos($messageid, '@')) + $messageid = str_replace(":", ".", $messageid).'@'.$a->get_hostname(); + + return($messageid); +} -- cgit v1.2.3