https://github.com/mrcl0wnlab/sendermailgunpython
Modulo Python criado para envio simples de email via API Mailgun
https://github.com/mrcl0wnlab/sendermailgunpython
ecommerce email mailgun marketing python
Last synced: 9 months ago
JSON representation
Modulo Python criado para envio simples de email via API Mailgun
- Host: GitHub
- URL: https://github.com/mrcl0wnlab/sendermailgunpython
- Owner: MrCl0wnLab
- License: gpl-3.0
- Created: 2020-04-29T01:09:26.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-29T01:50:28.000Z (about 6 years ago)
- Last Synced: 2025-08-01T12:02:49.390Z (11 months ago)
- Topics: ecommerce, email, mailgun, marketing, python
- Language: Python
- Homepage:
- Size: 16.6 KB
- Stars: 6
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SenderMailgunPython
[](https://www.python.org/)
[]()
[]()

Modulo Python criado para envio simples de email via API Mailgun
```
+ Autor: MrCl0wn
+ Blog: http://blog.mrcl0wn.com
+ GitHub: https://github.com/MrCl0wnLab
+ Twitter: https://twitter.com/MrCl0wnLab
+ Email: mrcl0wnlab\@\gmail.com
```
## Access Your Domains
> https://app.mailgun.com/app/sending/domains
## Access Your Private API key
> https://app.mailgun.com/app/account/security/api_keys
## Implementation Code
```python
import sendmailgun
# Instantiate the client.
sendmailgun.API_KEY = 'YOUR_KEY_MAILGUN'
emails = ['xxx@gmail.com','yyy@gmail.com','ZZZ@bol.com.br']
body = '
click teste!!!xxx
'
for email_target in emails:
post_data = {
'from': 'Your Name ',
'to': [email_target],
'subject':'Your subject',
'html':body
}
# Action sender.
sendmailgun.send_mail('marketing.your-mail.com.br',post_data)
print(mailgun.RESULT_SEND)
```
## Video
[](https://asciinema.org/a/PfmqNN6TPhpSrSYwlPO4t28oy)
## Result

## Reference:
> https://documentation.mailgun.com/en/latest/api-sending.html#sending