Python client for Mailgun Api V2

mailgun2的Python项目详细描述


PyPI

Codeship Status for albertyw/python-mailgun2Code ClimateCode Climate Test CoverageDependency Status

最初位于https://github.com/ZeroCater/python-mailgun2

用于与 Mailgun。当前只支持发送 信息。技术支持 Requests

与Python3一起工作!

安装

pip install mailgun2

用法

frommailgun2importMailgunmailer=Mailgun('example.mailgun.org','public_key','private_key')mailer.send_message('from@yourdomain.com',['to@you.com','others@you.com'],subject='Hi!',text='Sweet.')

必需参数:

from_email: string of email address to set as sender
to: list or string of email address to send to

可选参数:

subject: string subject of the email
text: string body of the email. Either text or html is required.
html: string HTML of the email. Either text or html is required.
cc: list of cc addresses.
bcc: list of bcc addresses.
tags: list of mailgun tags to associate with the email.
reply_to: Convenience argument for setting the Reply-To header
headers: Extra headers for messages
inlines: List of file paths to attach inline to the message
attachments: List of (file name, content type, file handle) as a multipart attachment

贡献

Contributing

拉请求欢迎!

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java将Scanner对象作为构造函数参数传递给UserInterface类   spring未能启动bean“subtocolWebSocketHandler”;嵌套的例外是java。lang.IllegalArgumentException:没有处理程序   Java EE应用程序中后台服务的多线程Java线程(设置守护进程和优先级)?   java Pull to refresh返回列表的第一个位置   无法将comparator类转换为java。可比的   java将json从servlet传递到dojo   JavaHibernate:将子类实例转换为超类实例   java警告调用servlet类时非法反射访问   java静态变量值   java@Entity和@embeddeble之间有什么区别   java将作业配置导入公共作业配置类(注释配置)   sql公共表表达式(以values语句开头)在java中给出错误   java在ImageJ中使用ImageProcessor   java PostgreSQL executeBatch()会随着时间的推移而变慢   java在安卓中以表格形式排列sqllite表数据?   java中SVG的swing定制呈现   java删除与另一个实体映射的实体   java何时/如何添加ListView适配器,使用back按钮恢复它?(片段)   java为什么IBinder和Binder之间的类型转换不是非法的?   java在方法参数列表中使用ArrayList或List