clmail的安装:
1. 下载python 2.5,并安装
2. 下载clmail,随便安装到一个目录中,比如python目录c:\python25中
用法:
clmail.py -u abc@163.com -p abc -H smtp.163.com -s 邮件标题 -t abc@163.com -f abc@163.com -a wx.txt -m 邮件正文 -a wow.gif
此例中abc@163.com为假定邮件地址
wx.txt为文本附件
wow.gif为二进制图片附件
本软件为开源软件,项目主站:
http://code.google.com/p/clmail/
感谢以下文档:
1. Parser for command line options
3. smtplib
4. Sending multipart MIME email with smtplib and MimeWriter
5.SMTPLIB & email.MIMEText : Certain charaters in the body stop mail from arriving. Why?
8.email: Creating email and MIME objects from scratch
9.