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.
Help get this topic noticed by sharing it on
Twitter,
Facebook, or email.
Twitter,
Facebook, or email.
-
Are you properly escaping the special character?
When sending over SMTP, or through the Web API, it's sometimes necessary to "escape" the character in the code, to make sure it's transmitted properly. -
-
I tried s.login('login', 'password\§') and s.login('login', r'password§'), none of these worked. How else could I escape the character? I also checked the smtplib code and it does some escaping automatically.
-
Loading Profile...




EMPLOYEE
