Aleksander Machniak
2015-02-25 b56a3b00f0d026b89f01c36a942cdc5c0f5b112a
Don't sent the message again in saveonly mode
1 files modified
2 ■■■ changed files
program/steps/mail/sendmail.inc 2 ●●● patch | view | raw | blame | history
program/steps/mail/sendmail.inc
@@ -517,7 +517,7 @@
$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');