[newbie] smtplib.login()?

Gerhard Häring gh at ghaering.de
Fri Mar 25 10:04:57 EST 2005


PA wrote:
> 
> On Mar 25, 2005, at 11:04, PA wrote:
> 
>> What am I doing wrong? Why is the user name being encoded twice?
> 
> 
> Ok... turns out that this is/was a bug in the python smtplib as  
> recently as Dec 6 2004:
> 
> Patch #1075928: AUTH PLAIN in smtplib.
> 
> "smtplib can not log in to some server using command AUTH PLAIN, it  sends
> ``user\0user\0pass'' to the server, but ``\0user\0pass'' has better
> compatibility."

I'll try to look into it.

-- Gerhard



More information about the Python-list mailing list