Ai
1 Star 0 Fork 0

Role/Python

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Email-Automation.py 574 Bytes
一键复制 编辑 原始数据 按行查看 历史
DilipVijjapu 提交于 2020-10-01 20:59 +08:00 . Email-automation using python
import smtplib
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
fro_add="dilipvijjapu@gmail.com"
to_add="vijjapudilip@gmail.com"
message=MIMEMultipart()
message['From']=fro_add
message['To']=",".join(to_add)
message['subject']="Testinf mail"
body='Hai this is dilip ,How are you'
message.attach(MIMEText(body,'plain'))
email=" "
password=" "
mail=smtplib.SMTP('smtp.gmail.com',587)
mail.ehlo()
mail.starttls()
mail.login(email,password)
text=message.as_string()
mail.sendmail(fro_add,to_add,text)
mail.quit()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/CRole/Python.git
git@gitee.com:CRole/Python.git
CRole
Python
Python
master

搜索帮助