No exception is thrown to caller when sending mail fails
RickKukiela opened this issue · 2 comments
RickKukiela commented
Ref line:
yii2-symfonymailer/src/Mailer.php
Line 213 in 716243e
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 |
Swanty commented
Looks like its fixed in 3.0.0
yii2-symfonymailer/src/Mailer.php
Line 144 in 291c009
RickKukiela commented
:) nice!