Commit e58c9a3f authored by zhangmeng's avatar zhangmeng

修改邮箱

parent f6761ad0
......@@ -28,7 +28,7 @@ from email.mime.text import MIMEText
def send_file_email(file_path, data_str, email_group=[],
email_msg_body_str=None,
title_str=None,
cc_group=["litao@igengmei.com"], sender=None,file=None):
cc_group=["zhangmeng@igengmei.com"], sender=None,file=None):
directory = file_path
# Create the enclosing (outer) message
if email_msg_body_str == None:
......@@ -44,7 +44,7 @@ def send_file_email(file_path, data_str, email_group=[],
outer['To'] = ','.join(email_group)
outer['Cc'] = ','.join(cc_group)
if not sender:
outer['From'] = 'litao@igengmei.com'
outer['From'] = 'zhangmeng@igengmei.com'
else:
outer['From'] = sender
mail_service = 'smtp.exmail.qq.com'
......@@ -124,7 +124,7 @@ def send_file_email(file_path, data_str, email_group=[],
# Now send or store the message
# composed = outer.as_string()
server = smtplib.SMTP_SSL(mail_service,465)
server.login("litao@igengmei.com","Lemo1995")
server.login("zhangmeng@igengmei.com","250858Aa")
server.send_message(outer)
server.quit()
......
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