Skip to content

Commit

Permalink
Update send.php
Browse files Browse the repository at this point in the history
  • Loading branch information
JE4GLE authored Nov 19, 2024
1 parent 9725d20 commit 9f0414c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion program/actions/mail/send.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ public function run($args = [])

$saveonly = !empty($_GET['_saveonly']);
$savedraft = !empty($_POST['_draft']) && !$saveonly;
$keepformatting = !empty($_POST['_keepformatting']);
if (in_array('keep_formatting', $rcmail->config->get('dont_override', []))) {
$keepformatting = false;
}
$SENDMAIL = new rcmail_sendmail($COMPOSE, [
'sendmail' => true,
'saveonly' => $saveonly,
Expand All @@ -55,7 +59,7 @@ public function run($args = [])
call_user_func_array([$rcmail->output, 'show_message'], $args);
$rcmail->output->send('iframe');
},
'keepformatting' => !empty($_POST['_keepformatting']),
'keepformatting' => $keepformatting,
]);

// Collect input for message headers
Expand Down

0 comments on commit 9f0414c

Please sign in to comment.