sendgrid/sendgrid-php — pull request #66 by anesse (2014-01-10 08:33:17+00:00)
Title: Update Smtp.php

This updates stops sendgrid from intercepting potentionally useful Swiftmail error messages.

If the $swift->send function triggers a Swift_TransportException, it will not necessarily be due to username/password errors. Swiftmailer will raise this exception for a lot of different reasons, username/password being only one of them.

Catching the error message and replacing it with new AuthException('Bad username / password') is not the right thing to do, because you cannot know if this was the reason the exception was thrown.

It is probably better to let the swiftmailer exception be thrown as is and not catch it.