SenderMailgunPython
Modulo Python criado para envio simples de email via API Mailgun
Install / Use
/learn @MrCl0wnLab/SenderMailgunPythonREADME
SenderMailgunPython
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
import sendmailgun
# Instantiate the client.
sendmailgun.API_KEY = 'YOUR_KEY_MAILGUN'
emails = ['xxx@gmail.com','yyy@gmail.com','ZZZ@bol.com.br']
body = ' <h1>click teste!!!xxx</h1>'
for email_target in emails:
post_data = {
'from': 'Your Name <you@your-mail.com.br>',
'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
Result

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