summaryrefslogtreecommitdiff
path: root/program/steps/mail/sendmail.inc
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-10-07 08:52:05 +0000
committeralecpl <alec@alec.pl>2010-10-07 08:52:05 +0000
commitf22ea7ba1875863890b486db3e5f448f99c1debc (patch)
treec13218570f467c72076f9e6f31c7a9d49fc783d4 /program/steps/mail/sendmail.inc
parent9db4ca92efc620fa5d38f53557e75e9a8e345047 (diff)
- Support SMTP Delivery Status Notifications - RFC3461 (#1486142)
Diffstat (limited to 'program/steps/mail/sendmail.inc')
-rw-r--r--program/steps/mail/sendmail.inc8
1 files changed, 7 insertions, 1 deletions
diff --git a/program/steps/mail/sendmail.inc b/program/steps/mail/sendmail.inc
index a9ecf2ea2..da79c2f83 100644
--- a/program/steps/mail/sendmail.inc
+++ b/program/steps/mail/sendmail.inc
@@ -546,7 +546,13 @@ if (!$savedraft)
$OUTPUT->send('iframe');
}
- $sent = rcmail_deliver_message($MAIL_MIME, $from, $mailto, $smtp_error, $mailbody_file);
+ // Handle Delivery Status Notification request
+ if (!empty($_POST['_dsn'])) {
+ $smtp_opts['dsn'] = true;
+ }
+
+ $sent = rcmail_deliver_message($MAIL_MIME, $from, $mailto,
+ $smtp_error, $mailbody_file, $smtp_opts);
// return to compose page if sending failed
if (!$sent)