# Custom Email Configuration - Failed to send magic link email

**URL:** <https://forum.ghost.org/t/custom-email-configuration-failed-to-send-magic-link-email/38579>\
**Category:** Developer help\
**Created:** [May 20, 2023, 6:43pm UTC](https://forum.ghost.org/t/custom-email-configuration-failed-to-send-magic-link-email/38579 "2023-05-20T18:43:41Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [May 20, 2023, 7:08pm UTC](https://forum.ghost.org/t/custom-email-configuration-failed-to-send-magic-link-email/38579/4 "2023-05-20T19:08:34Z")

</div>

Ahh I see – could have picked up on that 😅

Just had another deeper look then.

This seems to be your current configuration:

```auto
{
	"mail": {
		"transport": "SMTP",
		"options": {
			"host": "mail.privateemail.com",
			"port": 465,
			"secure": true,
			"from": "atharv@vadehra.me",
			"auth": {
				"user": "atharv@vadehra.me",
				"pass": " **********************"
			}
		}
	}
}

```

As you can see, you put the `from` property into the `options`. However, this should be one level up, putting it on the same level as `transport`. Have a look at the documentation [here](https://ghost.org/docs/config/#from-address) for more context.

Here’s the fixed configuration:

```auto
{
	"mail": {
		"from": "atharv@vadehra.me",
		"transport": "SMTP",
		"options": {
			"host": "mail.privateemail.com",
			"port": 465,
			"secure": true,
			"auth": {
				"user": "atharv@vadehra.me",
				"pass": " **********************"
			}
		}
	}
}

```

Hope that fixes the problem 🙂

---

_[View the full topic](https://forum.ghost.org/t/custom-email-configuration-failed-to-send-magic-link-email/38579)._
