I would like to control and embed my send() calls in a try/except, but I’m not sure of what errors it can produce.
Looking around the SDK, it seems like MailServiceError is the one, but not sure since I don’t know how to test an error like that.
Can anyone confirm this?
Here are the exceptions that can be thrown by a call to send(): https://developers.google.com/appengine/docs/python/mail/exceptions
Here’s an example of how you could catch these: