diff options
author | alecpl <alec@alec.pl> | 2009-07-06 09:13:10 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2009-07-06 09:13:10 +0000 |
commit | 2818f8e9ed5e8853e33636ac8efe09e2a4161618 (patch) | |
tree | 1bd0c3a4534704922c5ad80647a4334c28cc2082 /program/steps/mail/sendmdn.inc | |
parent | 2f2bb4020b5d3a79a65177d54fe1b5ade1efb69d (diff) |
- Show SMTP errors in browser (#1485927)
Diffstat (limited to 'program/steps/mail/sendmdn.inc')
-rw-r--r-- | program/steps/mail/sendmdn.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/program/steps/mail/sendmdn.inc b/program/steps/mail/sendmdn.inc index 3d7755cf3..c3294e7fe 100644 --- a/program/steps/mail/sendmdn.inc +++ b/program/steps/mail/sendmdn.inc @@ -21,7 +21,7 @@ if (!empty($_POST['_uid'])) { - $sent = rcmail_send_mdn(get_input_value('_uid', RCUBE_INPUT_POST)); + $sent = rcmail_send_mdn(get_input_value('_uid', RCUBE_INPUT_POST), $smtp_error); } // show either confirm or error message @@ -29,6 +29,9 @@ if ($sent) { $OUTPUT->set_env('mdn_request', false); $OUTPUT->show_message('receiptsent', 'confirmation'); } +else if ($smtp_error) { + $OUTPUT->show_message($smtp_error['label'], 'error', $smtp_error['vars']); +} else { $OUTPUT->show_message('errorsendingreceipt', 'error'); } |