Python failed to send mail via SMTP:
Error 1:smtplib. Smtpauthenticationerror: (550, B ' User has no permission ')
When we use Python to send a message, the custom client logs in based on the user name and password, and then uses the SMTP service to send mail, and the newly registered 163 mailbox is not turned on by default (enabled by default for the specified mailbox master client), so the login is always denied. Workaround (Take 163 mailboxes for example): Enter 163 mailbox-Setup-Client authorization password-on (authorization code is a private password used to log in to a third-party mail client)
Error 2:smtplib. Smtpauthenticationerror: (535, B ' error:authentication failed ')
Take 163 mailbox As an example, the authorization code will be set when the POP3/SMTP service is turned on and the client authorization password is turned on, instead of Smtplib. Password in the SMTP (). Login (User,password) method.
Python failed to send mail via SMTP, error 505/535