From ca90a9c174b815facf76295488567f281716179f Mon Sep 17 00:00:00 2001 From: alecpl Date: Tue, 7 Jul 2009 17:29:45 +0000 Subject: - handle smtp errors in show action (when mdn is send) --- program/steps/mail/show.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/program/steps/mail/show.inc b/program/steps/mail/show.inc index 39d2e1a6c..2395ac604 100644 --- a/program/steps/mail/show.inc +++ b/program/steps/mail/show.inc @@ -84,9 +84,11 @@ if ($_GET['_uid']) { { if (intval($CONFIG['mdn_requests']) === 1) { - if (rcmail_send_mdn($MESSAGE->uid)) + if (rcmail_send_mdn($MESSAGE->uid, $smtp_error)) $OUTPUT->show_message('receiptsent', 'confirmation'); - else + else if ($smtp_error) + $OUTPUT->show_message($smtp_error['label'], 'error', $smtp_error['vars']); + else $OUTPUT->show_message('errorsendingreceipt', 'error'); } else if (empty($CONFIG['mdn_requests'])) -- cgit v1.2.3