Commit 11c5de62 authored by 王志伟's avatar 王志伟

send_email

parent 1533a25a
......@@ -13,7 +13,7 @@ my_pass = 'VCrKTui99a7ALhiK'
my_user1='wangzhiwei@igengmei.com'
def mail():
ret = True
pdfFile = './test.txt'
pdfFile = 'test.txt'
pdfApart = MIMEApplication(open(pdfFile, 'rb').read())
pdfApart.add_header('Content-Disposition', 'attachment', filename=pdfFile)
......
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