如何使用python通过QQ邮箱发送邮件,具体实现方式如下:
# -*- coding: UTF-8 -*- import smtplib from email.mime.text import MIMEText from email.header import Header import socket ''' SMTP_host:邮件服务器, from_account:邮箱账号/发送者邮箱 from_passwd:邮箱密码 to_account:接收者邮箱,是一个list subject:邮件主题 content:邮件内容 ''' def send_email(SMTP_host, from_account<