yiisoft/yii2-symfonymailer

No exception is thrown to caller when sending mail fails

RickKukiela opened this issue · 2 comments

Ref line:

return false;

This catch does not re-throw the exception and instead does its own logging and returns false. There should be a way to suppress this behavior and let the exception be caught by the caller.

I have my own logging setup and now I have no way of logging the actual exception the way I want to after upgrading from the old swiftwmailer component.

Additional info

Q A
Yii version
Yii SymfonyMailer version
SymfonyMailer version
PHP version
Operating system

Looks like its fixed in 3.0.0

$this->getSymfonyMailer()->send($message);

:) nice!