# Issues with sending transactional email

**URL:** <https://forum.ghost.org/t/issues-with-sending-transactional-email/27243>\
**Category:** Memberships & subscriptions\
**Created:** [December 8, 2021, 4:14pm UTC](https://forum.ghost.org/t/issues-with-sending-transactional-email/27243 "2021-12-08T16:14:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![iammridu](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/iammridu/32/12474_2.png) [@iammridu](https://forum.ghost.org/u/iammridu)\
**Post date:** [December 8, 2021, 4:14pm UTC](https://forum.ghost.org/t/issues-with-sending-transactional-email/27243/1 "2021-12-08T16:14:36Z")

</div>

I am trying to change my newsletter email address and sign up a new member in publication. I have set up SMTP in my `config.production.json` file and also entered the API key and sending domain in my newsletter section under settings. I am getting errors such as “Retry” and “Failed to signup, please try again”.

I am using Ghost from Digital ocean and I have allowed traffic on port 25 as well.

On Ghost log, I am getting this:

```auto
NAME: BadRequestError
CODE: ESOCKET
MESSAGE: Failed Sending Email

level: normal

"Please see https://ghost.org/docs/config/#mail for instructions on configuring email."
BadRequestError: Failed Sending Email
Please see https://ghost.org/docs/config/#mail for instructions on configuring email.

```

What can I do to get the issue resolved.

---

<div class="post-metadata">

**Author:** ![iammridu](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/iammridu/32/12474_2.png) [@iammridu](https://forum.ghost.org/u/iammridu)\
**Post date:** [December 8, 2021, 4:15pm UTC](https://forum.ghost.org/t/issues-with-sending-transactional-email/27243/2 "2021-12-08T16:15:58Z")

</div>

New entry in my Ghost log

```auto
NAME: EmailError
CODE: ESOCKET
MESSAGE: Failed to send email. Reason: 140307265275776:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:332:
.

level: normal

"Please see https://ghost.org/docs/config/#mail for instructions on configuring email."
EmailError: Failed to send email. Reason: 140307265275776:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:332:
.
    at createMailError (/var/www/ghost/versions/4.26.1/core/server/services/mail/GhostMailer.js:67:12)
    at GhostMailer.sendMail (/var/www/ghost/versions/4.26.1/core/server/services/mail/GhostMailer.js:127:19)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async GhostMailer.send (/var/www/ghost/versions/4.26.1/core/server/services/mail/GhostMailer.js:113:26)
    at async MagicLink.sendMagicLink (/var/www/ghost/versions/4.26.1/node_modules/@tryghost/magic-link/lib/MagicLink.js:62:22)
    at async RouterController.sendMagicLink (/var/www/ghost/versions/4.26.1/node_modules/@tryghost/members-api/lib/controllers/router.js:298:17)

Error: 140307265275776:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:332:

```

---

<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:** [December 8, 2021, 4:23pm UTC](https://forum.ghost.org/t/issues-with-sending-transactional-email/27243/3 "2021-12-08T16:23:23Z")

</div>

The error message `ssl3_get_record:wrong version number` is saying the SSL version being used to establish the connection isn’t supported by the host you’re connecting to.

Do you have `"secure": true` in your mail config? If so, change it to `"secure": false` and try again.

> [@Failed to sign up, please try again](https://forum.ghost.org/t/failed-to-sign-up-please-try-again/20942/13):
>
> "secure": true - opens a connection immediately with SSL, this is failing in some cases because the default ciphers that connection is opened with are not compatible with the service that you’re connecting to "secure": false - opens a non-secure connection then uses TLS to negotiate a valid cipher before switching to a secure connection to complete the email sending. Typically you’ll need to use port 587 for this as it’s the standard port for secure TLS connections, some providers may vary thou…

---

<div class="post-metadata">

**Author:** ![iammridu](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/iammridu/32/12474_2.png) [@iammridu](https://forum.ghost.org/u/iammridu)\
**Post date:** [December 8, 2021, 4:25pm UTC](https://forum.ghost.org/t/issues-with-sending-transactional-email/27243/4 "2021-12-08T16:25:21Z")

</div>

Yes, I have `"secure":"false"` in my `config.production.json` file. I am still facing the issue.

---

<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:** [December 8, 2021, 4:26pm UTC](https://forum.ghost.org/t/issues-with-sending-transactional-email/27243/5 "2021-12-08T16:26:59Z")

</div>

> [@iammridu](#):
>
> I have allowed traffic on port 25 as well

Perhaps you can share the rest of your mail config (with passwords removed) - you shouldn’t need to be doing anything with port 25.

---

<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:** [December 8, 2021, 4:27pm UTC](https://forum.ghost.org/t/issues-with-sending-transactional-email/27243/6 "2021-12-08T16:27:34Z")

</div>

> [@iammridu](#):
>
> “secure”:“false”

That should be `"secure": false` - no quotes around the `false` part.

---

<div class="post-metadata">

**Author:** ![iammridu](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/iammridu/32/12474_2.png) [@iammridu](https://forum.ghost.org/u/iammridu)\
**Post date:** [December 8, 2021, 4:29pm UTC](https://forum.ghost.org/t/issues-with-sending-transactional-email/27243/7 "2021-12-08T16:29:31Z")

</div>

Thanks, Kevin. For the last 1 hour, I was trying everything other than removing these quotes 😀. Now its working fine.

Is there any way I can change the from name for transactional emails?
