MailjetSwiftMailer icon indicating copy to clipboard operation
MailjetSwiftMailer copied to clipboard

Better handle for errors in transport

Open Nightbr opened this issue 8 years ago • 0 comments

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.

Nightbr avatar Dec 19 '17 13:12 Nightbr