发布时间:2013-07-20 17:09:07
1 简单的邮件发送 #!/usr/bin/pythonimport smtplibimport timefrom email.mime.text import MIMETextmail_content = 'test'mail_from = 'test@126.com'mail_to = ['test@qq.com']msg=MIMEText(mail_content)msg['Subject']='test mail ok'msg['From']=mail_frommsg['To']=';'.join(mail_to)smtp=smt.........【阅读全文】