Help get this topic noticed by sharing it on Twitter Twitter, Facebook Facebook, or email.
Michal Wiglasz
sad I’m sad

Special character in password > cannot login via SMTP

I used the "§" character in my password. I can successfuly login into admin area but SMTP always returns 'Authentication failed: Bad username / password'. The password is definitely correct (copy&paste). I also tried "?", same results.

Example in Python:

import smtplib
s = smtplib.SMTP('smtp.sendgrid.com')
s.login('login', 'password§')
Traceback (most recent call last):
File "", line 1, in
File "D:\Python26\lib\smtplib.py", line 589, in login
raise SMTPAuthenticationError(code, resp)
smtplib.SMTPAuthenticationError: (535, 'Authentication failed: Bad username / password')

I don't think it's a bug in smtplib, because PHP didn't work either.
1 person has
this problem
+1
Reply