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如何从较新的Android API版本实现接口   java如何使用MQ Explorer读取Weblogic JMS队列?   java无法将字符串作为字符串数组返回   java使用来自不同线程的JMS会话   java断点位于Eclipse+Spring引导中的“抛出新的SilentExitException()”处   使用@id/Android:list的java Android多列表   Java串行编程   java如何在RestController类中模拟私有变量   java和java之间的区别。马绍尔群岛共和国。命名和java。马绍尔群岛共和国。登记处。地方司法   无法通过Heroku中的Selenium webdriver(Java)调用headless chrome驱动程序   java ID转换从Spring数据Rest Fowler更改为Gosling   java初学者JavaFX观察者   java RMI小程序客户端调用导致异常   如果顶级字段的所有嵌套字段都为空,java Jackson将忽略顶级字段的序列化   未在java中使用csvwriter逐行写入记录   java未收到任何关于实现NotificationListenerService的通知   java 2d平台(平滑)无冲突CPU密集型   java为什么赋值的左边不能是增量表达式?