Re: [Twisted-Python] Email problem

2010-07-13 Thread Tim Allen
On 07/13/2010 07:32 PM, Alvin Wang wrote: > # that's all falks > writer.lastpart() > m = message.getvalue() > message.close() Here, you set "m" to be a string containing the message contents. > factory = ESMTPSenderFactory(sender, > senderpw, >

[Twisted-Python] Email problem

2010-07-13 Thread Alvin Wang
Problem send email through gmail with an attachment Any help is appreciated Thanks Alvin """ Does not work """ from twisted.internet.ssl import ClientContextFactory from twisted.internet.defer import Deferred from twisted.mail.smtp import ESMTPSenderFactory from twisted.internet import reactor