For beginners in writing to send the message code common errors have SMTPAuthenticationError535, a little crazy, check the user name, password is correct is an error,
I think that is how I came to the same time, now to share your personal experience:
First, send the e-mail code as follows, in order to allow beginners to understand, the steps also give clear mark.
Two, after the run will throw SMTPAuthenticationError535 this exception, as follows.
The reason for this exception is not your mailbox password error, but because you want to log in the SMTP third party client, need to get your QQ mailbox Authorization code,
In other words, in password you should fill in the authorization code instead of your email password. What is the authorization code (refer to the Mailbox Help Center) and how to get the authorization code?
1, login to your mailbox, and find the nickname under the "Settings" link, go in and click on "Account" to find the following interface
2, open the IMAP/SMTP service, will jump out of the following window, you need to send text messages to the designated number, get authorization code, if you can successfully obtain authorization code, then directly replace the authorization code of your mailbox password can solve the problem
If you can't get it, it is your secret phone number is not your text message this mobile phone number, perhaps your previous mobile phone number, so you have to modify the secret phone number, and then come back to send SMS verification can be.
3, the security of the mobile phone number can be changed from the following entrance, follow the instructions.
Above
Python QQ mailbox Automatically send mail