commit | author | age
|
fba1f5
|
1 |
<?php |
T |
2 |
|
|
3 |
/* |
|
4 |
+-----------------------------------------------------------------------+ |
|
5 |
| program/steps/mail/sendmdn.inc | |
|
6 |
| | |
|
7 |
| This file is part of the RoundCube Webmail client | |
0ea884
|
8 |
| Copyright (C) 2008, RoundCube Dev. - Switzerland | |
fba1f5
|
9 |
| Licensed under the GNU GPL | |
T |
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 |
|
0ea884
|
23 |
if (!empty($_POST['_uid'])) { |
T |
24 |
$sent = rcmail_send_mdn(get_input_value('_uid', RCUBE_INPUT_POST)); |
fba1f5
|
25 |
} |
T |
26 |
|
0ea884
|
27 |
// show either confirm or error message |
T |
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 |
|
fba1f5
|
36 |
$OUTPUT->send(); |
T |
37 |
|
|
38 |
?> |