email libraries and threads

Diez B. Roggisch deets at
Sat Oct 13 18:42:01 CEST 2007

rodmc schrieb:
> Hi,
> I am writing a threaded application, part of which relies on sending
> messages to users. However I cannot get the smtplib and some other
> email related libraries to work inside threads (they work ok when not
> in threads). Is there a problem with using threads and email? If so is
> there a solution available or any tips which people can give me?

I doubt that there are problems using the modules from within threads - 
at least as long as you don't share connecitons and the like between 

So - until you show us some of your troubles by providing actual code 
examples and error messages, nobody will be able to help you.


More information about the Python-list mailing list