Bastien Continsouzas schrieb: > Is there a way to catch the exceptions raised when an email is sent. > > For example, when I debug, I see that sending a mail to a fake > recipient raises a SMTPRecipientsRefused exception but I cannot catch > it since it is not raised by the same thread where > turbomail.enqueue(message) is called.
I didn't try that myself - but you might get lucky using the turbomail.dispatch.Dispatch class yourself, initializing it with the parameters from the config and then calling it with the message. That should rid you from the threading. Diez --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

