I want to test my Python program which uses the Mailgun API. When executing the program, I did not get any Terminal output. However, on my Mailgun dashboard I do not see that any email was sent and I did not get an email to the specified email as well.
import requests
def send_simple_message():
return requests.post(
"https://api.mailgun.net/v3/sandbox***.mailgun.org/messages", #replaced the actual link
auth=("api", "key"), #replaced the actual API key with "key"
data={"from": "User <test@gmail.com>", #replaced mail
"to": ["User", "Test@gmail.com"], #replaced mail
"subject": "Hello",
"text": "Testing some Mailgun awesomness!"})
send_simple_message()
Thank you for your help!