@@ -14,8 +14,6 @@ Originally at <https://github.com/ZeroCater/python-mailgun2>
14
14
A super simple Python API for interacting with [ Mailgun] ( https://www.mailgun.com/ ) . Currently
15
15
only supports sending messages. Powered by [ Requests] ( https://docs.python-requests.org/en/latest/ ) .
16
16
17
- Works with Python 3!
18
-
19
17
## Installation
20
18
21
19
``` shell
@@ -37,32 +35,28 @@ mailer.send_message(
37
35
38
36
Required arguments:
39
37
40
- from_email: string of email address to set as sender
41
- to: list or string of email address to send to
38
+ ```
39
+ from_email: string of email address to set as sender
40
+ to: list or string of email address to send to
41
+ ```
42
42
43
43
Optional arguments:
44
44
45
- subject: string subject of the email
46
- text: string body of the email. Either text or html is required.
47
- html: string HTML of the email. Either text or html is required.
48
- cc: list of cc addresses.
49
- bcc: list of bcc addresses.
50
- tags: list of mailgun tags to associate with the email.
51
- reply_to: Convenience argument for setting the Reply-To header
52
- headers: Extra headers for messages
53
- inlines: List of file paths to attach inline to the message
54
- attachments: List of (file name, content type, file handle) as a multipart attachment
45
+ ```
46
+ subject: string subject of the email
47
+ text: string body of the email. Either text or html is required.
48
+ html: string HTML of the email. Either text or html is required.
49
+ cc: list of cc addresses.
50
+ bcc: list of bcc addresses.
51
+ tags: list of mailgun tags to associate with the email.
52
+ reply_to: Convenience argument for setting the Reply-To header
53
+ headers: Extra headers for messages
54
+ inlines: List of file paths to attach inline to the message
55
+ attachments: List of (file name, content type, file handle) as a multipart attachment
56
+ ```
55
57
56
58
## Contributing
57
59
58
60
See [ Contributing] ( https://github.com/albertyw/python-mailgun2/blob/master/CONTRIBUTING.md )
59
61
60
62
Pull requests welcome!
61
-
62
- ## Distributing
63
-
64
- ``` bash
65
- pip install twine
66
- python setup.py sdist bdist_wheel
67
- twine upload dist/*
68
- ```
0 commit comments