Don't sent the message again in saveonly mode

pull/280/head
Aleksander Machniak 9 years ago
parent 16c326380d
commit b56a3b00f0

@ -517,7 +517,7 @@ if (function_exists('mb_encode_mimeheader')) {
$MAIL_MIME->headers($headers);
// Begin SMTP Delivery Block
if (!$savedraft) {
if (!$savedraft && !$saveonly) {
// check 'From' address (identity may be incomplete)
if (empty($from)) {
$OUTPUT->show_message('nofromaddress', 'error');

Loading…
Cancel
Save