Commit e33df2eb authored by 王志伟's avatar 王志伟

send_email

parent b5dca6a5
......@@ -15,7 +15,7 @@ my_pass = 'RiKEcsHAgesCZ7yd'
my_user1='wangzhiwei@igengmei.com'
def mail():
ret = True
pdfFile = 'test.txt'
pdfFile = 'hypothesis.txt'
pdfApart = MIMEApplication(open(pdfFile, 'rb').read())
pdfApart.add_header('Content-Disposition', 'attachment', filename=pdfFile)
m = MIMEMultipart()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment