DevelMailLog
extends PhpMail
and this one implements MailInterface
Accord with the MailInterface, the function mail should return a boolean.
* @return bool
* TRUE if the mail was successfully accepted for delivery, otherwise FALSE.
But as far as I can see in the code, the DevelMailLog::mail
method returns:
return file_put_contents($output_file, $output);
Which accord with PHP's documentation:
This function returns the number of bytes that were written to the file, or FALSE on failure.
So when the mail is sent instead to return true it returns a number which can be confused and is not following the interface.
I will provide a test and a patch in my next comment.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2848968-devel-2.patch | 1.26 KB | gnuget |
| |||
#2 | 2848968-devel-test-only-2.patch | 772 bytes | gnuget |
Comments
Comment #2
gnugetComment #4
willzyx CreditAttribution: willzyx commentedComment #6
moshe weitzman CreditAttribution: moshe weitzman commentedThanks.