message MDL-24694 made the email message processor report success if the recipient...
authorAndrew Davis <andrew@affinitysoftware.net>
Wed, 3 Nov 2010 07:57:31 +0000 (07:57 +0000)
committerAndrew Davis <andrew@affinitysoftware.net>
Wed, 3 Nov 2010 07:57:31 +0000 (07:57 +0000)
message/output/email/message_output_email.php

index 958a64f..43b1e18 100644 (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"
     }
 
     /**