[Twisted-Python] SMTP with authentication

Jean-Paul Calderone exarkun at divmod.com
Fri Nov 3 19:49:15 EST 2006


On Fri, 3 Nov 2006 16:17:15 -0800, Alvin Wang <alvinwang at gmail.com> wrote:
>Hi,
>
>I am new to twisted but google and the Oreilly book have failed me.  I am
>trying to create a client to send to a smtp server.  All the examples that I
>have found only work if your  SMTP server does not require authentication.
>
>I am guessing that I need to use
>http://twistedmatrix.com/documents/current/api/twisted.mail.smtp.ESMTPSenderFactory.html
>
>
>Unfortunately, I can find no examples that use it.
>
>I did find something from 2004
>http://twistedmatrix.com/pipermail/twisted-python/2004-April/007433.html

This should still work.

>
>That is prior to the commit for ESMTPSenderFactory
>http://twistedmatrix.com/pipermail/twisted-commits/2004-July/011608.html

This changed ESMTPSenderFactory, but authentication was supported before
this commit.  Give the code at the previous URL a try and post again if
you run into problems.

Jean-Paul




More information about the Twisted-Python mailing list