mailjet / MailjetSwiftMailer

A SwiftMailer transport implementation for Mailjet
MIT License
26 stars 23 forks source link

Better handle for errors in transport #10

Open Nightbr opened 6 years ago

Nightbr commented 6 years ago

I think we should throw runtime error and only catch Mailjet API error. Because when we have a real issue (https://github.com/mailjet/mailjetBundle/issues/10 with curl), we need to be alerted that there is an error...

Lets think about this.

https://github.com/mailjet/MailjetSwiftMailer/blob/master/SwiftMailer/MailjetTransport.php#L146 We can be more precise on the type of error we catch here. Also I think we should look at SwiftMailer recommendation and best practice on this.