Mailgun integration broken (self-hosted)

Issue Summary
Although I haven’t modified the Mailgun integration on my self-hosted blog, it seems that the integration is broken.
However, it appears as validated in the settings, and all the DNS records are validated in my Mailgun dashboard.

Steps to Reproduce

  1. Create a self hosted Ghost blog
  2. Set a Mailgun account
  3. Paste the Mailgun API key in settings
  4. Try to invite a staff or subscribe to newsletter on your website

Setup information

Ghost Version
5.96.1

Node.js Version
v18.20.4

How did you install Ghost?
Deployed with Coolify Cloud on a fresh VPS

Provide details of your host & operating system
Ubuntu 22.02

Database type
mysql8

Relevant log / error output

There was an error sending the email, please try again

The Mailgun API in the settings is only used for newsletters. The emails sent for staff invitations, password resets for staff, magic links, etc. use the mail configuration in the config.<environment>.json.

Have a look here:

You will need to set your Mailgun credentials in the Ghost configuration as well for this to properly work.

2 Likes