gabrieliuga / laravel-mail-log

MIT License
4 stars 2 forks source link

Is it possible to somehow save sending errors in the log? #3

Open 4n70w4 opened 4 years ago

4n70w4 commented 4 years ago

For example save unsended email with exception like: Swift_TransportException: Expected response code 354 but got code "503", with message "503 Valid RCPT command must precede DATA "

4n70w4 commented 4 years ago

If I understand correctly, may be use another event MessageSending that occurs before sending. And save all sent letters to the table as a draft. After MessageSent change status to sent. After exception - save error.

gabrieliuga commented 4 years ago

Thank you for this. Will look into it this evening.