mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 04:33:13 +01:00
message MDL-24694 made the email message processor report success if the recipient has said they don't want to receive emails so that code sending messages isnt bothered by what looks like a failure.
This commit is contained in:
parent
fe8373bcd2
commit
d8d32f1aac
@ -56,8 +56,7 @@ class message_output_email extends message_output {
|
||||
$result = email_to_user($eventdata->userto, $eventdata->userfrom,
|
||||
$eventdata->subject, $eventdata->fullmessage, $eventdata->fullmessagehtml);
|
||||
|
||||
return $result===true; //email_to_user() can return true, false or "emailstop"
|
||||
//return true;//do we want to report an error if email sending fails?
|
||||
return ($result===true || $result=='emailstop'); //email_to_user() can return true, false or "emailstop"
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user