From ae8f192c90dfab0bfa052d7cb247e03e80a7a249 Mon Sep 17 00:00:00 2001 From: thomascube Date: Wed, 20 Feb 2008 22:47:06 +0000 Subject: Remove MDN headers before saving in sent folder + fix wrong variale name --- program/steps/mail/func.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'program/steps/mail') diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index f14c532b4..b1ce4bd4e 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -1435,6 +1435,8 @@ function rcmail_deliver_message(&$message, $from, $mailto) $sent = mail($headers_enc['To'], $headers_enc['Subject'], $msg_body, $header_str, "-f$from"); } + if ($sent) // remove MDN headers after sending + unset($headers['Return-Receipt-To'], $headers['Disposition-Notification-To']); $message->_headers = array(); $message->headers($headers); -- cgit v1.2.3