[newbie] smtplib.login()?

PA petite.abeille at gmail.com
Fri Mar 25 06:00:33 EST 2005


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."

http://cvs.sourceforge.net/viewcvs.py/python/python/dist/src/Lib/ 
smtplib.py

Sigh...

Cheers

--
PA, Onnay Equitursay
http://alt.textdrive.com/




More information about the Python-list mailing list