smtplib authentication

Thomas Wouters thomas at xs4all.net
Sun Sep 24 11:59:58 EDT 2000


On Sun, Sep 24, 2000 at 03:33:32PM +0200, Gijs Reulen wrote:

> I studied the smtplib and found it does not support authentication :-( Nor
> can I find any rfc on the subject ?! rfc822 and others only seem to discuss
> the sending/recieving of mails to smtp servers that do not need to be logged
> in. Thats ok for locally addressed mail. However, the provider hosting our
> own domainname does not have an smtp server and therefore I have to use
> another server to relay my messages.
> Can anyone please explain to me how to authenticate a smtp connection from
> Python ? Or at least how to do it in general (if a general solution exists)
> ?

You're looking for RFC 2554, which describes the AUTH command. There were a
few other requests for rfc2554 support in smtplib, but as far as I know
noone is working on it.

-- 
Thomas Wouters <thomas at xs4all.net>

Hi! I'm a .signature virus! copy me into your .signature file to help me spread!




More information about the Python-list mailing list