标签:tty word account pass pretty class 备份 登陆 tin
EMAIL_HOST = ‘smtp.163.com‘
EMAIL_PORT = ‘25‘
EMAIL_HOST_USER = ‘contact108@163.com‘
EMAIL_HOST_PASSWORD = ‘******‘ # 填密码
subject = u‘号码通激活‘
print name
message = u‘用户:‘ + name + u‘ 您好,首先非常感谢你的注册‘ + u"\n点击链接就可以激活邮箱,从而用邮箱进行登陆:" + u"http://192.168.1.163:8080/account/activate/?activation_key=" + activation_key + u"\n我们将为你提供非常好的号码相关服务:比如号码备份/群组建立/号码查找/群组活动等等,来自108网络教研室"
print message
send_mail(subject, message, settings.EMAIL_HOST_USER, [dst_email])
标签:tty word account pass pretty class 备份 登陆 tin
原文地址:http://www.cnblogs.com/xqnq2007/p/7043767.html