4 +-----------------------------------------------------------------------+
5 | program/steps/mail/sendmdn.inc |
7 | This file is part of the Roundcube Webmail client |
8 | Copyright (C) 2008-2009, Roundcube Dev. - Switzerland |
9 | Licensed under the GNU GPL |
12 | Send a message disposition notification for a specific mail |
14 +-----------------------------------------------------------------------+
15 | Author: Thomas Bruederli <roundcube@gmail.com> |
16 +-----------------------------------------------------------------------+
18 $Id: sendmdn.inc 3989 2010-09-25 13:03:53Z alec $
22 // only process ajax requests
23 if (!$OUTPUT->ajax_call)
26 if (!empty($_POST['_uid'])) {
27 $sent = rcmail_send_mdn(get_input_value('_uid', RCUBE_INPUT_POST), $smtp_error);
30 // show either confirm or error message
32 $OUTPUT->set_env('mdn_request', false);
33 $OUTPUT->show_message('receiptsent', 'confirmation');
35 else if ($smtp_error) {
36 $OUTPUT->show_message($smtp_error['label'], 'error', $smtp_error['vars']);
39 $OUTPUT->show_message('errorsendingreceipt', 'error');