Summer Sale! All accounts are 50% off this week.

tome-sbk's avatar

Error handling Laravel Mail

Laravel app sending mails with mandrillapp and Mailchimp. it's working.

How do you handling errors? How can I know is the mail sent or not?

Mail is send with Mail::sent() in try/catch block.

count(Mail::failures) is always 0. I can't find what type or error is needed to show in failures[]?

I can catch Swift_RfcComplianceException and Swift_TransportException I read the mailchimp documentation but can't find some return of API which says about mail status.

Any idea or suggestion about error handling?

0 likes
2 replies

Please or to participate in this conversation.