There are no more than two types of SMTP services in the market
1. Send directly. Login password by mail, such as outlook, QQ email
2. You need to set an independent password for SMTP, such as 163 e-mail
Python uses two ways to send e-mail: SMP and outlook
This article mainly implements two ways of sending email in Python: SMTP and outlook
SMTP is a direct call to the 163 mailbox of the SMTP server, you need to set it in the 163 mailbox.
Outlook send is the same search in the settings of outlook
Configuration of SMTP 163
See for yourself
Main 163 requires you to apply for an authorization password. The password entered in the code is your authorization password
View the configuration of SMTP outlook
Import smtplib # SMTP server
Successfully sent. Email received
This work adoptsCC agreementReprint must indicate the author and the link of this article