python STMP
import smtplib from email.header import Header from email.mime.text import MIMEText server = smtplib.SMTP('smtp.163.com', 25) server.login('18818261892@163.com', 'LBQ139196') msg = MIMEText('hello, send by Python...', 'plain', 'utf-8') msg['From'] = '18818261892@163.com <18818261892@163.com>' msg['Subject'] = Header(u'text', 'utf8').encode() msg['To'] = u'飞轮海 <1848406889@qq.com>' server.sendmail('18818261892@163.com', ['1848406889@qq.com'], msg.as_string())