SkillAgentSearch skills...

SenderMailgunPython

Modulo Python criado para envio simples de email via API Mailgun

Install / Use

/learn @MrCl0wnLab/SenderMailgunPython
About this skill

Quality Score

0/100

Category

Marketing

Supported Platforms

Universal

README

SenderMailgunPython

Python 3.7 Build Build GitHub

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

asciicast

Result

Screenshot

Reference:

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

View on GitHub
GitHub Stars6
CategoryMarketing
Updated1y ago
Forks1

Languages

Python

Security Score

75/100

Audited on Aug 12, 2024

No findings