smtplib and SSL

Gerhard Häring gh at ghaering.de
Wed Jun 4 17:25:49 EDT 2003


Michael Prager wrote:
> Michael Prager <Mike.Prager at noaa.gov> wrote:
>>Gerhard Häring <gh at ghaering.de> wrote:
>>
>>>Please post the output of this script:
>>>
>>>#v+
>>>import smtplib
>>>
>>>s = smtplib.SMTP("myserver")
>>>s.debuglevel = 5
>>>s.login("myusername", "mypassword")
>>>#v-
>>
> 
> Authentication is now working perfectly, perhaps because I
> updated from Python 2.2.2 to 2.2.3?

Yep. Apparently your SMTP server only offered the LOGIN authentication 
(which I added to smtplib and I fought to get it backported to 2.2-maint 
a while ago). My guess is that we're talking about M$ Exchange here :->

-- Gerhard





More information about the Python-list mailing list