I try to send email via python using Mailgun
I have
def send_simple_message():
return requests.post(
"https://api.mailgun.net/v3/sandbox6247218655a94010b9840c23c2688fc7.mailgun.org",
auth=("api", "key-********"),
data={"from": "Excited User <bb@gmail.com>",
"to": ["bb@outlook.com", "bb4@gmail.com"],
"subject": "Hello",
"text": "Testing some Mailgun awesomness!"})
I realize I forgot /messages
def send_simple_message():
return requests.post(
"https://api.mailgun.net/v3/sandbox6247218655a94010b9840c23c2688fc7.mailgun.org/messages",
auth=("api", "key-********"),
data={"from": "Excited User <bb@gmail.com>",
"to": ["bb@outlook.com", "bb4@gmail.com"],
"subject": "Hello",
"text": "Testing some Mailgun awesomness!"})
I run it
python mail.py
I still don't see any email. I also check my MailGun and my spam folder.
Any hints for me ?