摘要:
很多时候我们可能需要在某种情况下自动发送邮件给对方,标准库的smtplib可以实现这个功能,代码比较简单。#!/usr/bin/env pythonimport smtplibfrom email.mime.text import MIMEText#list of mail address you wana to sendto = ["xx@xx", "xx@xx"]#user and password of your mailMailHost = "smtp.163.com"MailUser = "xxxxxx" 阅读全文
posted @ 2011-03-31 21:14
没钱买域名。。
阅读(1114)
评论(0)
推荐(0)
浙公网安备 33010602011771号