Ghost unable to send newsletter posts
-
Email via mailgun is all set up fine. Test email works, support (register/change password) emails work fine.
Newsletter, no go.
This is from the logs, not sure if it helps:
Jun 22 11:38:13 [2023-06-22 21:38:13] INFO Worker for job "email-analytics-fetch-latest" online Jun 22 11:38:13 [2023-06-22 21:38:13] INFO Worker for job email-analytics-fetch-latest sent a message: done Jun 22 11:38:13 [2023-06-22 21:38:13] INFO [EmailAnalytics] Aggregating for 0 emails Jun 22 11:38:13 [2023-06-22 21:38:13] INFO [EmailAnalytics] Aggregating for 0 members Jun 22 11:38:13 [2023-06-22 21:38:13] INFO [EmailAnalytics] Fetch latest started Jun 22 11:38:13 [2023-06-22 21:38:13] INFO [EmailAnalytics] Fetch missing started Jun 22 11:38:13 [2023-06-22 21:38:13] INFO [EmailAnalytics] Fetch scheduled started Jun 22 11:38:13 [2023-06-22 21:38:13] INFO [EmailAnalytics] Fetched 0 events and aggregated stats in 0ms (scheduled) Jun 22 11:38:13 [2023-06-22 21:38:13] INFO [EmailAnalytics] Fetched 0 events and aggregated stats in 168ms (latest) Jun 22 11:38:13 [2023-06-22 21:38:13] INFO [EmailAnalytics] Fetched 0 events and aggregated stats in 1ms (missing) Jun 22 11:38:13 [2023-06-22 21:38:13] INFO [EmailAnalytics] Fetching finished Jun 22 11:38:13 [2023-06-22 21:38:13] INFO [EmailAnalytics] Fetching from 2023-06-22T06:34:56.809Z until 2023-06-22T21:37:13.717Z (maxEvents: Infinity) Jun 22 11:38:13 [2023-06-22 21:38:13] INFO [EmailAnalytics] Skipping fetchMissing because end (Thu Jun 22 2023 06:34:56 GMT+0000 (Coordinated Universal Time)) is before begin (Thu Jun 22 2023 06:34:56 GMT+0000 (Coordinated Universal Time)) Jun 22 11:38:20 [2023-06-22 21:38:20] INFO "GET /" 301 1ms
The newsletter has 117 confirmed members in the email list. No sign of any mails trying to be sent on Mailgun. Changed the API key again and still nada.
Any hints for diagnosing?
-
@jordanurbs anything in mailgun dashboard ? The mails go straight from Ghost to mailgun (Cloudron doesn't see them)
-
Nothing in mailgun dashboard! Good to know. Not sure where to go from here though
-
I figured it out... instead of using the Domain > Sending > API Key (on Mailgun), use the Account > Private API Key.
Working fine now
-
-
-
Going to re-open this, because while the error disappeared initially and the "sent" confirmation was showing up per address on the post's analytics screen (unlike before), it is now saying error again and Mailgun is not showing any deliveries...
If anyone ever comes up with the same problem I'd love to hear how you solve it.
-
Presumably you already have the newsletter email address all set-up etc?
I created these instructions for what got it working for me:
-
@jdaviescoates Thanks for sharing. Unfortunately, I had followed all those steps to a tee and it's still not working.
New subscriber works, test email works... just not the bulk send.
-
This is what shows up onscreen for a while (hours?) before it shows the error
-
@jordanurbs by error, do you mean that it says "Could not send xxx" below the post in Ghost dashboard ? Usually, there is something in the logs. If you download the full logs, maybe you will find something.
-
Made a new mailgun account and it works fine now. I was grandfathered in on the old mailgun that was free, but apparently they won't let you send in bulk...