# Error sending email!

**URL:** <https://forum.ghost.org/t/error-sending-email/11378>\
**Category:** Developer help\
**Created:** [January 14, 2020, 1:14pm UTC](https://forum.ghost.org/t/error-sending-email/11378 "2020-01-14T13:14:48Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Atmadeep\_Das](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/atmadeep_das/32/5423_2.png) [@Atmadeep\_Das](https://forum.ghost.org/u/Atmadeep_Das)\
**Post date:** [January 14, 2020, 1:14pm UTC](https://forum.ghost.org/t/error-sending-email/11378/1 "2020-01-14T13:14:48Z")

</div>

Hello when I am trying to add a new author or a person via ghost dashboard I am getting the following error message :  
“Error sending email! Error sending email: Failed to send email. Reason: Can’t send mail - all recipients were rejected. Please check your email settings and resend the invitation.”

Can someone suggest me, how do I fix this error?

---

<div class="post-metadata">

**Author:** ![DavidDarnes](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/daviddarnes/32/3533_2.png) [@DavidDarnes](https://forum.ghost.org/u/DavidDarnes)\
**Post date:** [January 14, 2020, 1:58pm UTC](https://forum.ghost.org/t/error-sending-email/11378/2 "2020-01-14T13:58:03Z")

</div>

> [@Atmadeep\_Das](#):
>
> Please check your email settings…

Checking your email settings might be a good place to start 😄. You can check these in the Ghost Admin under Labs as well as the install configuration set in your config file:

> **[Configuration - Adapt your publication to suit your needs](https://ghost.org/docs/config/)**
>
> Find out how to configure your Ghost publication or override Ghost's default behaviour with robust config options, including mail, storage, scheduling and more!

---

<div class="post-metadata">

**Author:** ![Roman\_Mastalir](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/roman_mastalir/32/28876_2.png) [@Roman\_Mastalir](https://forum.ghost.org/u/Roman_Mastalir)\
**Post date:** [February 8, 2024, 1:53pm UTC](https://forum.ghost.org/t/error-sending-email/11378/3 "2024-02-08T13:53:16Z")

</div>

Hi, I have the very same issue, getting just different errors. Already tried combinations of everything that can be configured. Using mailgun and basically cannot get my transactional emails to work.

**Errors**

```auto
{"name":"Log","hostname":"evblog","pid":2030,"level":40,"version":"5.79.0","msg":"Error sending email: Failed to send email. Reason: C0670D0FF87F0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version nu>

```

```auto
"mail": {
    "transport": "SMTP",
    "options": {
      "service": "Mailgun",
      "host": "smtp.eu.mailgun.org",
      "port": 578,
      "secureConnection": true,
      "auth": {
        "user": "postmaster@mydomain.com",
        "pass": " *******"
      }
    }
  },

```

This is my setup, but cannot get through.

---

<div class="post-metadata">

**Author:** ![RyanF](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/ryanf/32/17448_2.png) [@RyanF](https://forum.ghost.org/u/RyanF)\
**Post date:** [February 8, 2024, 2:24pm UTC](https://forum.ghost.org/t/error-sending-email/11378/4 "2024-02-08T14:24:35Z")

</div>

> [@Roman\_Mastalir](#):
>
> `"port": 578,`

The port should be 587. I’m not sure that’s the error, but try updating that first.

---

<div class="post-metadata">

**Author:** ![Roman\_Mastalir](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/roman_mastalir/32/28876_2.png) [@Roman\_Mastalir](https://forum.ghost.org/u/Roman_Mastalir)\
**Post date:** [February 8, 2024, 3:06pm UTC](https://forum.ghost.org/t/error-sending-email/11378/5 "2024-02-08T15:06:20Z")

</div>

Oh, right. I did try so many combinations of so many different ports and settings that I mistyped the port. Still does not work, now I get this error:

````auto
{"name":"Log","hostname":"evblog","pid":4428,"level":40,"version":"5.79.0","msg":"Missing mail.from config, falling back to a generated em>
{"name":"Log","hostname":"evblog","pid":4428,"level":40,"version":"5.79.0","msg":"Missing mail.from config, falling back to a generated em>
{"name":"Log","hostname":"evblog","pid":4428,"level":40,"version":"5.79.0","msg":"Error sending email: Failed to send email. Reason: C0B7D>```
````

---

<div class="post-metadata">

**Author:** ![jannis](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/jannis/32/39718_2.png) [@jannis](https://forum.ghost.org/u/jannis)\
**Post date:** [February 8, 2024, 3:51pm UTC](https://forum.ghost.org/t/error-sending-email/11378/6 "2024-02-08T15:51:10Z")

</div>

The errors are cut off – can you post the full error log, since that contains the important information?

---

<div class="post-metadata">

**Author:** ![Roman\_Mastalir](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/roman_mastalir/32/28876_2.png) [@Roman\_Mastalir](https://forum.ghost.org/u/Roman_Mastalir)\
**Post date:** [February 8, 2024, 7:13pm UTC](https://forum.ghost.org/t/error-sending-email/11378/7 "2024-02-08T19:13:23Z")

</div>

> [@Roman\_Mastalir](#):
>
> `{"name":"Log","hostname":"evblog","pid":4428,"level":40,"version":"5.79.0","msg":"Missing mail.from config, falling back to a generated em>`

Thank you for pointing me in the right direction. I’m new to this, not a developer. After some time I was able to get the full error message and found the issue:

````auto
Error sending email: Failed to send email. Reason: Data command failed: 421 Domain mg.evblog.cz is not allowed to send: Free accounts are for test purposes only. Please upgrade or add the address to authorized recipients in Account Settings.. Please check your email settings and resend the invitation.```

Fun fact. The newsletter using the Mailgun API key works properly, but for SMTP you need paid account.
````
