!/usr/bin/python
-- coding:utf-8 --
import os
import smtplib
fromAddress=’########@163.com’
toAddress=’****@qq.com’
msg=”Subject:Hello\n\n This is the body of the message.”
server = smtplib.SMTP(“smtp.163.com”,25)
server.sendmail(fromAddress,toAddress,msg)