为人际邮件服务
项目描述
为人际邮件服务。
关于
Envelopes是Python的email和smtplib模块的包装器。它旨在使Python中处理发件邮件变得简单而有趣。
简短示例
from envelopes import Envelope, GMailSMTP
envelope = Envelope(
from_addr=(u'from@example.com', u'From Example'),
to_addr=(u'to@example.com', u'To Example'),
subject=u'Envelopes demo',
text_body=u"I'm a helicopter!"
)
envelope.add_attachment('/Users/bilbo/Pictures/helicopter.jpg')
# Send the envelope using an ad-hoc connection...
envelope.send('smtp.googlemail.com', login='from@example.com',
password='password', tls=True)
# Or send the envelope using a shared GMail connection...
gmail = GMailSMTP('from@example.com', 'password')
gmail.send(envelope)
功能
Envelopes允许您轻松地
提供带或不带名称部分的电子邮件地址。
根据需要设置文本、HTML或两者都作为正文。
提供任意数量的CC和BCC地址。
设置标准(例如 Reply-To)和自定义(例如 X-Mailer)标题。
轻松地附加任何类型的文件。
在地址、正文、标题和附件文件名中使用Python的unicode类型本机支持的任何字符集。
项目状态
应将此项目视为测试版。如果您决定在生产中使用Envelopes,请谨慎行事。
Envelopes已使用Python 2.7开发和测试。目前,Envelopes支持Python 2.6、2.7和3.3。
许可证
Envelopes采用MIT许可证。
源代码和问题
源代码可在GitHub上找到: tomekwojcik/envelopes。
要提交问题报告和功能请求,请使用GitHub上的项目问题跟踪器。
项目详情
关闭
Envelopes-0.4.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | a4a02b4dc21467794d3a646f946d99a8c5b3311b2df8e211f96ca9e0b838e7e0 |
|
MD5 | 89c06590414f0b517a26eb3f59cb2cfb |
|
BLAKE2b-256 | 2eac0aaba34d717868729428bf4dca601c93cd6b0f9123894f2509911027b0dd |