Use python to log on to the QQ mail sending code. if you have any need, refer
The code is as follows:
#-*-Coding: cp936 -*-
From email. Header import Header
From email. MIMEText import MIMEText
From email. MIMEMultipart import MIMEMultipart
Import smtplib, datetime
# Create an instance with an attachment
Msg = MIMEMultipart ()
# Construct an attachment
Att = MIMEText (open ('F: \ file name .doc ', 'RB'). read (), 'base64', 'gb2312 ')
Att ["Content-Type"] = 'application/octet-stream'
Att ["Content-Disposition"] = 'attachment; filename = "file name .doc "'
Msg. attach (att)
# Add an email header
Msg ['to'] = '2017 @ qq.com'
Msg ['from'] = '2017 @ qq.com'
Msg ['subobject'] = Header ('test ('+ str (datetime. date. today () +') ', 'gb2312 ')
# Send an email
Server = smtplib. SMTP ('smtp .qq.com ')
Server. login ('20140901', '20160901 ')
Error = server. sendmail (msg ['from'], msg ['to'], msg. as_string ())
Server. close
Print error