Python client for Mailgun Api V3
mailgun3的Python项目详细描述
python-mailgun2
==
==
[![代码气候](https://codeculate.com/github/zerocater/python-mailgun2/badges/gpa.svg)(https://codeculate.com/github/zerocater/python-mailgun2)
[![依赖关系状态](https://gemnasium.com/zerocater/python-mailgun2.svg)(https://gemnasium.com/zerocater/python-mailgun2)
用于与[mailgun]交互的超级简单的python api(http://www.mailgun.com/)。
目前仅支持发送消息。支持
[请求](http://docs.python requests.org/en/latest/)。
python 3支持应该存在,但目前尚未测试。
安装:
``外壳
pip安装mailgun2
````
用法:
`` python
来自mailgun2 import mailgun
mailer=mailgun('apikey','example.mailgun.org')
mailer.send_消息(
'来自@yourdomain.com',
['发送到@you.com','others@you.com',
主题='hi!',
text='sweet.'
)
```
必选参数:
````
from_email:string of email address to set as sender
to:list或string of email address to send to
```
optional参数:
```
subject:string subject of the email
text:string body of the email。需要文本或HTML。
HTML:电子邮件的字符串HTML。需要文本或HTML。
cc:抄送地址列表。
bcc:抄送地址列表。
tags:要与电子邮件关联的mailgun标记列表。
reply-to:设置回复标题的便利参数
headers:邮件的额外标题
inline:要内联附加到邮件的文件路径列表
attachments:列表of(文件名、内容类型、文件句柄)作为多部分附件
```
pull请求欢迎!
==
==
[![代码气候](https://codeculate.com/github/zerocater/python-mailgun2/badges/gpa.svg)(https://codeculate.com/github/zerocater/python-mailgun2)
[![依赖关系状态](https://gemnasium.com/zerocater/python-mailgun2.svg)(https://gemnasium.com/zerocater/python-mailgun2)
用于与[mailgun]交互的超级简单的python api(http://www.mailgun.com/)。
目前仅支持发送消息。支持
[请求](http://docs.python requests.org/en/latest/)。
python 3支持应该存在,但目前尚未测试。
安装:
``外壳
pip安装mailgun2
````
用法:
`` python
来自mailgun2 import mailgun
mailer=mailgun('apikey','example.mailgun.org')
mailer.send_消息(
'来自@yourdomain.com',
['发送到@you.com','others@you.com',
主题='hi!',
text='sweet.'
)
```
必选参数:
````
from_email:string of email address to set as sender
to:list或string of email address to send to
```
optional参数:
```
subject:string subject of the email
text:string body of the email。需要文本或HTML。
HTML:电子邮件的字符串HTML。需要文本或HTML。
cc:抄送地址列表。
bcc:抄送地址列表。
tags:要与电子邮件关联的mailgun标记列表。
reply-to:设置回复标题的便利参数
headers:邮件的额外标题
inline:要内联附加到邮件的文件路径列表
attachments:列表of(文件名、内容类型、文件句柄)作为多部分附件
```
pull请求欢迎!