摘要:
1、不带附件 1)构造一个smtplib.SMTP对象 2)连接(connect)SMTP服务器,认证(login) 3)发送邮件(sendmail) 4)断开连接(quit) View Code #encoding:utf-8import sysimport os.pathimport smtplibimport emaildef sendTextMail(mailhost,sender,passwd,recipients,ccto = '',bccto = '',subject = '',message = '', messa 阅读全文
posted @ 2013-05-06 19:39
山野樵夫
阅读(397)
评论(0)
推荐(0)
浙公网安备 33010602011771号