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:
Andrew Davis 2010-11-03 07:57:31 +00:00
parent fe8373bcd2
commit d8d32f1aac

View File

@ -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"
}
/**