1 Star 0 Fork 1

左路谢桥/python-core

forked from luohanye/python-core 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
mail-test.py 427 Bytes
一键复制 编辑 原始数据 按行查看 历史
luohanye 提交于 2019-08-27 20:38 +08:00 . update
import smtplib, sys
smtpObj = smtplib.SMTP('smtp.qq.com', 25)
type(smtpObj)
print(smtpObj.ehlo('hello'))
mailAddress='836491384@qq.com'
# 授权码
password='wlcfnoewxzuebbgi'
smtpObj.login(mailAddress, password)
smtpObj.sendmail(mailAddress, 'indexman@126.com', 'Subject: God bless you. \n Long time no see, bro. Hope you will be '
'a great man.')
print(smtpObj.quit())
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/caodifeng/python-core.git
git@gitee.com:caodifeng/python-core.git
caodifeng
python-core
python-core
master

搜索帮助