Mailgun
Apps › Mailgun sends all site email through Mailgun. Read email apps first: only one email app sends at a time. The app runs in Naratica Social, and settings you saved before moved there automatically.
What you need
Section titled “What you need”- A Mailgun account with a verified sending domain, for example
mg.yoursite.com, and the region it is in (US or EU). - A Mailgun API key (API Security) or a sending key of that domain. A sending key works too: Naratica checks it with a test message Mailgun accepts but never delivers.
- Every plan. The app is in Beta.
Set it up
Section titled “Set it up”- In Mailgun, add and verify your sending domain, for example
mg.yoursite.com, and create an API key. - In Naratica, open Apps › Mailgun, click Enable and fill in:
- API key: your Mailgun key
- Region: US or EU, where your Mailgun domain is
- Sending domain: the domain from step 1
- In Sender address, use an address on that domain. It is required.
- Click Test and enable.
- Under Site email, click Send a test email and send it to yourself.
- When the test arrives, click Send all site email with this app and confirm.
Bounce and complaint webhook
Section titled “Bounce and complaint webhook”- On the app’s page, under Status, copy the Bounce and complaint webhook address. It is new since the email apps moved to Naratica Social: if your provider still has the old address, replace it. The old one keeps working for now.
- In Mailgun, open the webhooks of your sending domain and add the address.
- Add it for these events: Permanent failure, Complained and Unsubscribed.
Those addresses then stop getting your newsletter. Keep the webhook address private.
Permissions
Section titled “Permissions”The app asks for one permission, Send email: it sends your site’s email (sign-ups, password resets, contact messages and newsletters) through Mailgun, from your sending domain. To check the key, Naratica reads that sending domain’s details in Mailgun; it reads nothing else.
Common problems
Section titled “Common problems”| What you see | What to do |
|---|---|
| Mailgun refused the API key. | The key is wrong, or it is a sending key of another domain. Paste the right key. |
| Mailgun has no domain … in this region. | Check Sending domain, and set Region to where the domain is in Mailgun (US or EU). |
| The sending domain is not a domain name. | Enter only the domain, for example mg.yoursite.com, without https:// or an address. |
| Mailgun refused the message (HTTP 4xx): … | The text after the colon is Mailgun’s. Most often the Sender address is not on the sending domain. |
| Mailgun is limiting how fast mail is sent or Mailgun could not take the message now | Nothing to do: email waits and is tried again. |
| Bounced readers still get the newsletter | Check the webhooks of your sending domain in Mailgun: the address from Status and the events above. |
Turn off or remove
Section titled “Turn off or remove”- The email app that sends all site email can’t be turned off or removed. First make another email app send all site email (Send all site email with this app on that app’s page). See only one sends at a time.
- Turn off stops the app and keeps its settings and API key. Enable turns it back on with no setup.
- Remove deletes its settings and API key from Naratica. The key still works in Mailgun: delete it there, and remove the webhooks, if you no longer use them.
Reader data
Section titled “Reader data”Reader email addresses, sent to Mailgun (USA or EU region, the one you chose).