【文件属性】:
文件名称:drymail:使发送电子邮件变得简单而 DRY — 对于 Python 3
文件大小:13KB
文件格式:ZIP
更新时间:2021-05-29 19:32:12
python email python3 email-sender smtp
干邮件
使发送电子邮件变得简单而 — 适用于 Python 3。
Drymail是对 Python 现有和库的极简包装,旨在友好但不受限制。 以下是您如何使用drymail发送带有附件的简单电子邮件的方法。
from drymail import SMTPMailer , Message
client = SMTPMailer ( host = 'smtp.email.com' , user = 'johndoe' , password = 'password' , tls = True )
message = Message ( subject = 'Congrats on the new job!' , sender = ( 'John Doe' , 'john@email.com' ),
receivers = [( 'Jane Doe' ,
【文件预览】:
drymail-master
----setup.py(4KB)
----.gitignore(1KB)
----readthedocs.yml(49B)
----requirements.txt(23B)
----LICENSE(1KB)
----drymail.py(13KB)
----README.md(2KB)
----docs()
--------Makefile(584B)
--------requirements.rtfd.txt(27B)
--------make.bat(756B)
--------source()