if (isset($draft)) {
include_once ('../src/draft_actions.php');
- if (!saveMessageAsDraft($send_to, $send_to_cc, $send_to_bcc, $subject, $body, $reply_id)) {
+ if (!saveMessageAsDraft($send_to, $send_to_cc, $send_to_bcc, $subject, $body, $reply_id, $MDN)) {
showInputForm();
exit();
} else {
$body = $newBody;
do_hook("compose_send");
-
+
+ $MDN = False; // we are not sending a mdn response
if (! isset($mailprio)) {
$Result = sendMessage($send_to, $send_to_cc, $send_to_bcc,
- $subject, $body, $reply_id);
+ $subject, $body, $reply_id, $MDN);
} else {
$Result = sendMessage($send_to, $send_to_cc, $send_to_bcc,
- $subject, $body, $reply_id, $mailprio);
+ $subject, $body, $reply_id, $MDN, $mailprio);
}
if (! $Result) {
showInputForm();
$use_javascript_addr_book, $send_to_bcc, $reply_id, $mailbox,
$from_htmladdr_search, $location_of_buttons, $attachment_dir,
$username, $data_dir, $identity, $draft_id, $delete_draft,
- $mailprio;
+ $mailprio, $default_use_mdn, $mdn_user_support;
$subject = decodeHeader($subject, false);
$reply_subj = decodeHeader($reply_subj, false);
echo "\n" . '<FORM name=compose action="compose.php" METHOD=POST ' .
'ENCTYPE="multipart/form-data"';
do_hook("compose_form");
+
+
echo ">\n";
if (isset($draft_id)) {
function showComposeButtonRow()
{
global $use_javascript_addr_book, $save_as_draft,
- $default_use_priority, $mailprio;
+ $default_use_priority, $mailprio, $default_use_mdn;
echo " <TR><td>\n </td><td>\n";
if ($use_javascript_addr_book) {
"\n\t</select>";
}
+ $mdn_user_support=getPref($data_dir, $username, 'mdn_user_support',$default_use_mdn);
+ if ($default_use_mdn) {
+ if ($mdn_user_support) {
+ echo _("Confirm reading:").
+ "<input type=\"checkbox\" name=\"request_mdn\" value=1>";
+ }
+ }
+
do_hook('compose_button_row');
echo " </TD>\n";
}
+
+
function ClearAttachments()
{
global $username, $attachments, $attachment_dir;