注册阿里云邮箱:阿里云邮--免费邮箱
登陆入口:登录入口_阿里邮箱个人版-阿里w
pip install yagmail
import yagmail
yag_server = yagmail.SMTP(user='xxxx@aliyun.com', password='xxxx', host='smtp.aliyun.com')
yag_server.send( 'xxxx@xxxx.com' , 'title' , 'context' )
附:
阿里云免费个人邮箱服务器信息:
服务器名称 | 服务器地址 | 服务器端口号(非加密) | 服务器端口号(SSL加密) |
POP3 | pop3.aliyun.com | 110 | 995 |
SMTP | smtp.aliyun.com | 25 | 465 |
IMAP | imap.aliyun.com | 143 | 993 |