# Bulk email for new post to free members doesn't work

**URL:** <https://forum.ghost.org/t/bulk-email-for-new-post-to-free-members-doesnt-work/21730>\
**Category:** Memberships & subscriptions\
**Created:** [April 9, 2021, 6:44pm UTC](https://forum.ghost.org/t/bulk-email-for-new-post-to-free-members-doesnt-work/21730 "2021-04-09T18:44:25Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![LucaG](https://avatars.discourse-cdn.com/v4/letter/l/a88e4f/32.png) [@LucaG](https://forum.ghost.org/u/LucaG)\
**Post date:** [April 9, 2021, 6:44pm UTC](https://forum.ghost.org/t/bulk-email-for-new-post-to-free-members-doesnt-work/21730/1 "2021-04-09T18:44:25Z")

</div>

I have tripled checked the mailgun API keys and they should be right. Signin, signup and subscribe messages work fine. But when I try to send a new post to free subscribers (I don’t have paid) it throws the following error. Has anyone experienced the same?

 ![Screen Shot 2021-04-09 at 8.32.57 PM](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/d/dc595b80b829e9b7d7fcb14ff81704a0c9b29aae.png)

---

<div class="post-metadata">

**Author:** ![brendantko](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/brendantko/32/8221_2.png) [@brendantko](https://forum.ghost.org/u/brendantko)\
**Post date:** [April 9, 2021, 7:16pm UTC](https://forum.ghost.org/t/bulk-email-for-new-post-to-free-members-doesnt-work/21730/2 "2021-04-09T19:16:49Z")

</div>

If you check your mailgun logs do you see if it gets to mailgun and having problems there? If it doesn’t even get to mailgun then it’ll be a problem with your settings in Ghost. It’s a place to start

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kevin/32/32_2.png) [@Kevin](https://forum.ghost.org/u/Kevin)\
**Post date:** [April 9, 2021, 9:35pm UTC](https://forum.ghost.org/t/bulk-email-for-new-post-to-free-members-doesnt-work/21730/3 "2021-04-09T21:35:01Z")

</div>

> [@LucaG](#):
>
> Signin, signup and subscribe messages work fine. But when I try to send a new post to free subscribers

Signin, signup, and subscribe are all transactional emails, they will use your mail settings from your config file. Sending bulk email to members will instead use the Mailgun settings configured in the admin interface, it sounds like the API key or domain that you’ve entered there is incorrect.

---

<div class="post-metadata">

**Author:** ![LucaG](https://avatars.discourse-cdn.com/v4/letter/l/a88e4f/32.png) [@LucaG](https://forum.ghost.org/u/LucaG)\
**Post date:** [April 10, 2021, 12:37pm UTC](https://forum.ghost.org/t/bulk-email-for-new-post-to-free-members-doesnt-work/21730/4 "2021-04-10T12:37:38Z")

</div>

I am aware of difference, I also edited the email files in /core to translate them to my target language. I re-pasted the API key and domain 100x I don’t know where the error is. It’s a private API key right? I even tried with a Sending API key but nothing

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kevin/32/32_2.png) [@Kevin](https://forum.ghost.org/u/Kevin)\
**Post date:** [April 10, 2021, 3:51pm UTC](https://forum.ghost.org/t/bulk-email-for-new-post-to-free-members-doesnt-work/21730/6 "2021-04-10T15:51:53Z")

</div>

What domain are you putting in? Sounds like that could be the problem.

---

<div class="post-metadata">

**Author:** ![LucaG](https://avatars.discourse-cdn.com/v4/letter/l/a88e4f/32.png) [@LucaG](https://forum.ghost.org/u/LucaG)\
**Post date:** [April 12, 2021, 11:08am UTC](https://forum.ghost.org/t/bulk-email-for-new-post-to-free-members-doesnt-work/21730/7 "2021-04-12T11:08:01Z")

</div>

[mg.labioslivres.com](http://mg.labioslivres.com) and US region the site is [https://labioslivres.com/](https://labioslivres.com/)

---

<div class="post-metadata">

**Author:** ![LucaG](https://avatars.discourse-cdn.com/v4/letter/l/a88e4f/32.png) [@LucaG](https://forum.ghost.org/u/LucaG)\
**Post date:** [April 12, 2021, 11:09am UTC](https://forum.ghost.org/t/bulk-email-for-new-post-to-free-members-doesnt-work/21730/8 "2021-04-12T11:09:34Z")

</div>

@Kevin

 ![Screen Shot 2021-04-12 at 12.09.09 PM](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/1/141f54d55f31d07063c828ef0719cb6c667974c2.png)

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kevin/32/32_2.png) [@Kevin](https://forum.ghost.org/u/Kevin)\
**Post date:** [April 12, 2021, 11:09am UTC](https://forum.ghost.org/t/bulk-email-for-new-post-to-free-members-doesnt-work/21730/9 "2021-04-12T11:09:41Z")

</div>

Is there a firewall or anything similar on your server that could be blocking outgoing connections to Mailgun’s API?

---

<div class="post-metadata">

**Author:** ![LucaG](https://avatars.discourse-cdn.com/v4/letter/l/a88e4f/32.png) [@LucaG](https://forum.ghost.org/u/LucaG)\
**Post date:** [April 12, 2021, 11:10am UTC](https://forum.ghost.org/t/bulk-email-for-new-post-to-free-members-doesnt-work/21730/10 "2021-04-12T11:10:43Z")

</div>

Not that I am aware of. It’s a pretty vanilla installation of ghost on DO

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kevin/32/32_2.png) [@Kevin](https://forum.ghost.org/u/Kevin)\
**Post date:** [April 12, 2021, 11:11am UTC](https://forum.ghost.org/t/bulk-email-for-new-post-to-free-members-doesnt-work/21730/11 "2021-04-12T11:11:33Z")

</div>

Have you checked your log files to see if there’s any details about the underlying error? [https://ghost.org/docs/ghost-cli/#ghost-log](https://ghost.org/docs/ghost-cli/#ghost-log)

---

<div class="post-metadata">

**Author:** ![LucaG](https://avatars.discourse-cdn.com/v4/letter/l/a88e4f/32.png) [@LucaG](https://forum.ghost.org/u/LucaG)\
**Post date:** [April 12, 2021, 11:44am UTC](https://forum.ghost.org/t/bulk-email-for-new-post-to-free-members-doesnt-work/21730/12 "2021-04-12T11:44:19Z")

</div>

Just checked, I can see a new EmailError at createMailError and a bunch of other errors. What should I be looking for exactly? Very long log:)

---

<div class="post-metadata">

**Author:** ![ntotao](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/ntotao/32/10609_2.png) [@ntotao](https://forum.ghost.org/u/ntotao)\
**Post date:** [April 15, 2021, 8:59pm UTC](https://forum.ghost.org/t/bulk-email-for-new-post-to-free-members-doesnt-work/21730/13 "2021-04-15T20:59:29Z")

</div>

I’ve your same exact problem, but looking at the credentials you are using for the mailgun config, the Mailgun domain should be something from the main mailgun domain AFAIK.  
[http://api.eu.mailgun.net/v3/your.domain.here](http://api.eu.mailgun.net/v3/your.domain.here) should be the entry instead of your personal domain.  
Try it and let us know! (in my case I’m based in europe so I added the eu. prefix, for US it should be empty e.g. [http://api.mailgun.net/v3/your.domain.here](http://api.mailgun.net/v3/your.domain.here))  
For more info you can check the mailgun API documentation [here](https://documentation.mailgun.com/en/latest/api-intro.html#mailgun-regions)

By the way this is not working for me neither, I’ve also repasted tons of time domain and API, nada ☹  
It actually worked before upgrading to ghost4.0 - I’ve a self-hosted instance.

---

<div class="post-metadata">

**Author:** ![LucaG](https://avatars.discourse-cdn.com/v4/letter/l/a88e4f/32.png) [@LucaG](https://forum.ghost.org/u/LucaG)\
**Post date:** [April 19, 2021, 2:58pm UTC](https://forum.ghost.org/t/bulk-email-for-new-post-to-free-members-doesnt-work/21730/14 "2021-04-19T14:58:25Z")

</div>

Thanks for sharing @ntotao. What domain do we need to use @Kevin?  
Btw these are the logs I get from the bulk mail error (first part):

{“name”:“Log”,“hostname”:“bloglabioslivres”,“pid”:4619,“level”:50,“err”:{“id”:“2c120380-696a-11eb-b9a6-cb2e5a5b7055”,“domain”:“[https://labioslivres.com](https://labioslivres.com)”,“code”:null,“name”:“EmailError”,“statusCode”:500,“level”:“normal”,“message”:“Failed to send email.”,“context”:“"Unable to send welcome email, your site will continue to function."”,“help”:“"Please see [Configuration - Adapt your publication to suit your needs](https://ghost.org/docs/config/#mail) for instructions on configuring email."”,“stack”:"EmailError: Failed to send email.\n at EmailError.GhostError (/var/www/ghost/versions/3.41.3/node\_modules/@tryghost/errors/lib/errors.js:10:26)\n at new EmailError (/var/www/ghost/versions/3.41.3/node\_modules/@tryghost/errors/lib/errors.js:34:20)\n at createMailError (/var/www/ghost/versions/3.41.3/core/server/services/mail/GhostMailer.js:52:12)\n at EventEmitter.

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kevin/32/32_2.png) [@Kevin](https://forum.ghost.org/u/Kevin)\
**Post date:** [April 19, 2021, 3:24pm UTC](https://forum.ghost.org/t/bulk-email-for-new-post-to-free-members-doesnt-work/21730/15 "2021-04-19T15:24:19Z")

</div>

The domain should be entered as it appears in Mailgun, as an example in the case shown in the image below the domain would be `lookingsideways.co.uk`.

Mailgun:

 ![Screenshot 2021-04-19 at 16.19.07](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/4/44908cc03dac1cda6e8c0f923f62b20d660beb25.png)

Ghost:

 ![Screenshot 2021-04-19 at 16.22.44](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/f/f272ac23587a30c0507fc802fca5201b9205bc35.png)

Clicking the links under the fields in Ghost’s admin will take you to the respective areas of Mailgun’s admin for you to find the necessary domain/api key. For the API key make sure it’s a _private_ API key, not a sending API key otherwise Ghost won’t be able to contact Mailgun’s API to fetch email analytics events.

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kevin/32/32_2.png) [@Kevin](https://forum.ghost.org/u/Kevin)\
**Post date:** [April 19, 2021, 3:27pm UTC](https://forum.ghost.org/t/bulk-email-for-new-post-to-free-members-doesnt-work/21730/16 "2021-04-19T15:27:13Z")

</div>

> [@LucaG](#):
>
> Btw these are the logs I get from the bulk mail error (first part):
> 
> {“name”:“Log”,“hostname”:“bloglabioslivres”,“pid”:4619,“level”:50,“err”:{“id”:“2c120380-696a-11eb-b9a6-cb2e5a5b7055”,“domain”:“[https://labioslivres.com](https://labioslivres.com)”,“code”:null,“name”:“EmailError”,“statusCode”:500,“level”:“normal”,“message”:“Failed to send email.”,“context”:““Unable to send welcome email, your site will continue to function.””,“help”:““Please see [Configuration - Adapt your publication to suit your needs](https://ghost.org/docs/config/#mail) for instructions on configuring email.””,“stack”:"EmailError: Failed to send email.\n at EmailError.GhostError (/var/www/ghost/versions/3.41.3/node\_modules/@tryghost/errors/lib/errors.js:10:26)\n at new EmailError (/var/www/ghost/versions/3.41.3/node\_modules/@tryghost/errors/lib/errors.js:34:20)\n at createMailError (/var/www/ghost/versions/3.41.3/core/server/services/mail/GhostMailer.js:52:12)\n at EventEmitter.

That’s not related to the bulk email config, it’s your transactional email (welcome, signup, signin, staff invite, etc). Follow the link provided in the log for details on how to set it up [https://ghost.org/docs/config/#mail](https://ghost.org/docs/config/#mail)

---

<div class="post-metadata">

**Author:** ![ntotao](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/ntotao/32/10609_2.png) [@ntotao](https://forum.ghost.org/u/ntotao)\
**Post date:** [April 19, 2021, 3:47pm UTC](https://forum.ghost.org/t/bulk-email-for-new-post-to-free-members-doesnt-work/21730/17 "2021-04-19T15:47:10Z")

</div>

Thank you for this! I can’t believe I was making this wrong. I was sure to have read in two tutorials to insert the mailgun domain I indicated previously…  
Thank you vary much!

---

<div class="post-metadata">

**Author:** ![LucaG](https://avatars.discourse-cdn.com/v4/letter/l/a88e4f/32.png) [@LucaG](https://forum.ghost.org/u/LucaG)\
**Post date:** [June 4, 2021, 4:47pm UTC](https://forum.ghost.org/t/bulk-email-for-new-post-to-free-members-doesnt-work/21730/18 "2021-06-04T16:47:20Z")

</div>

Hi @Kevin, the transactional emails work fine. But I really cannot figure out the bulk email sendout, so can’t access the newsletter feature. Here’s what the logs look like. Any help would be much appreciated!!

 ![Screenshot 2021-06-04 at 10.53.51](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/f/fcc786e5f11889c9ba5b0684962a6a9ea25e9dba.jpeg)

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kevin/32/32_2.png) [@Kevin](https://forum.ghost.org/u/Kevin)\
**Post date:** [June 4, 2021, 4:49pm UTC](https://forum.ghost.org/t/bulk-email-for-new-post-to-free-members-doesnt-work/21730/19 "2021-06-04T16:49:19Z")

</div>

Sounds like the domain entered in the Mailgun settings area in the admin panel has some invalid characters in it.

---

<div class="post-metadata">

**Author:** ![LucaG](https://avatars.discourse-cdn.com/v4/letter/l/a88e4f/32.png) [@LucaG](https://forum.ghost.org/u/LucaG)\
**Post date:** [June 4, 2021, 10:25pm UTC](https://forum.ghost.org/t/bulk-email-for-new-post-to-free-members-doesnt-work/21730/20 "2021-06-04T22:25:17Z")

</div>

![Screen Shot 2021-06-05 at 12.21.45 AM](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/0/009828eb06f2438106c4e0f83adbc1c6781622dd.png)  
 ![Screen Shot 2021-06-05 at 12.24.07 AM](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/c/c681aef2c5c73f845f8033cc7eb4757b798976a9.png)  
I swear I repasted them 10 times already

---

<div class="post-metadata">

**Author:** ![LucaG](https://avatars.discourse-cdn.com/v4/letter/l/a88e4f/32.png) [@LucaG](https://forum.ghost.org/u/LucaG)\
**Post date:** [June 4, 2021, 10:26pm UTC](https://forum.ghost.org/t/bulk-email-for-new-post-to-free-members-doesnt-work/21730/21 "2021-06-04T22:26:06Z")

</div>

Could it be anything else @Kevin? I am really at a loss here

[Next page](https://forum.ghost.org/t/bulk-email-for-new-post-to-free-members-doesnt-work/21730.md?page=2)
