source: github/program/steps/mail/sendmdn.inc @ 0ea88409

HEADcourier-fixdev-browser-capabilitiespdorelease-0.6release-0.7release-0.8
Last change on this file since 0ea88409 was 0ea88409, checked in by thomascube <thomas@…>, 5 years ago

Make sending of read receipts configurable

  • Property mode set to 100644
File size: 1.4 KB
Line 
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
22require_once('lib/rc_mail_mime.inc');
23
24
25if (!empty($_POST['_uid'])) {
26  $sent = rcmail_send_mdn(get_input_value('_uid', RCUBE_INPUT_POST));
27}
28
29// show either confirm or error message
30if ($sent) {
31  $OUTPUT->set_env('mdn_request', false);
32  $OUTPUT->show_message('receiptsent', 'confirmation');
33}
34else {
35  $OUTPUT->show_message('errorsendingreceipt', 'error');
36}
37
38$OUTPUT->send();
39
40?>
Note: See TracBrowser for help on using the repository browser.