]> git.donarmstrong.com Git - roundcube.git/blob - program/steps/mail/sendmdn.inc
Imported Upstream version 0.2~alpha
[roundcube.git] / program / steps / mail / sendmdn.inc
1 <?php
2
3 /*
4  +-----------------------------------------------------------------------+
5  | program/steps/mail/sendmdn.inc                                        |
6  |                                                                       |
7  | This file is part of the RoundCube Webmail client                     |
8  | Copyright (C) 2008, RoundCube Dev. - Switzerland                      |
9  | Licensed under the GNU GPL                                            |
10  |                                                                       |
11  | PURPOSE:                                                              |
12  |   Send a message disposition notification for a specific mail         |
13  |                                                                       |
14  +-----------------------------------------------------------------------+
15  | Author: Thomas Bruederli <roundcube@gmail.com>                        |
16  +-----------------------------------------------------------------------+
17
18  $Id: sendmail.inc 930 2007-11-25 17:34:19Z thomasb $
19
20 */
21
22
23 if (!empty($_POST['_uid'])) {
24   $sent = rcmail_send_mdn(get_input_value('_uid', RCUBE_INPUT_POST));
25 }
26
27 // show either confirm or error message
28 if ($sent) {
29   $OUTPUT->set_env('mdn_request', false);
30   $OUTPUT->show_message('receiptsent', 'confirmation');
31 }
32 else {
33   $OUTPUT->show_message('errorsendingreceipt', 'error');
34 }
35
36 $OUTPUT->send();
37
38 ?>