为python轻松发送电子邮件
emailx的Python项目详细描述
#emailx:为python发送简单易懂的电子邮件
'
smtp_连接(smtp,login)为c:
e=email(
source='alex<;alex@example.com>;',
subject='hello',
body='body',
html撸body='<;html>;body<;html>;',
to撸addresses='bobby<;bobby@example.com',
bcc撸addresses='kim<;kim@example.com>;',
附件={
“a.csv”:csv数据
}
)
c.send(e)
'
smtp_连接(smtp,login)为c:
e=email(
source='alex<;alex@example.com>;',
subject='hello',
body='body',
html撸body='<;html>;body<;html>;',
to撸addresses='bobby<;bobby@example.com',
bcc撸addresses='kim<;kim@example.com>;',
附件={
“a.csv”:csv数据
}
)
c.send(e)