Issue
The issue that I'm running into is that the example curl command that mailgun provides is not sending an email. This is what it looks like once I substitute in my values
curl -s --user 'api:dfjkdjksan-api-keyasdfjkj' \
sandbox33380083kdsomedomain39dks.mailgun.org \
-F from='Excited User <[email protected]>' \
-F to='[email protected]' \
-F subject='Hello' \
-F text='Testing some Mailgun awesomeness!'
This command prints something like "Mailgun API" to the console, but the email doesn't appear in the inbox. The to email ([email protected]
) is registered on the mailgun website
When I try out the test mailer, I get this status infinately, when the timer runs out, it just starts over.
Solution
Add /messages
to the end of your domain so it's
curl -s --user 'api:dfjkdjksan-api-keyasdfjkj' \ sandbox33380083kdsomedomain39dks.mailgun.org/messages
Also if you're using GoDaddy, make the domain for most of you mx and txt records to be just the subdomain like mg
instead of mg.yourdomain.com
Answered By - Sam