I am unable to successfully set up Mailgun on my Digital Ocean droplet.
I have followed the SMTP settings, they are below, added the API key to my Mailgun settings, and I have set up the DNS settings needed. Still nothing works.
I have updated the file to the following but it is still not working. I am using the US services so I don’t have the EU host. I know nothing about egress ports so maybe some help with that might be beneficial.
Hey Jeff, I just set this up and got it working today. I’m also using DO.
I tried port 587, but it kept shutting me down. I had to change it back to 465 to get it to work. The tutorial I used is here (pics missing). The code for setting up mail in the config is only missing a comma after the user to be properly formatted JSON. Other than that, it should work just fine.
Honestly, without the right formatting, I’m not sure that your Ghost restart after editing would work. If you want to check your JSON formatting, I’ve found JSONLint to be helpful.
I didn’t have to change anything on the Digital Ocean end (like opening up ports).
My formatting looks identical to this and I have had the instance where I had an invalid json format and I had to change it for Ghost to start properly.
I’m honestly at a loss because my code is correct. It’s so frustrating to see everything correct but nothing working.
I know it’s super frustrating. I quit Ghost twice because I couldn’t get it working. Hopefully, with a couple of us helping you, we’ll be able to figure it out.
In Mailgun, did you get your domain verified, or are you using sandbox?
What happens when you try to change the reply-to email address for your newsletter? Does it send out?
Okay so I did that and bulk email works but transactional email is not working now (I am unable to change the email addresses for the newsletter and admin email in Ghost.
You need to get this working before attempting to send anything through Ghost.
Please post console output including the command, and redact API and email addresses. Make sure the credentials match that in Mailgun under sending / API.