Custom Email Configuration - Failed to send magic link email

Ahh I see – could have picked up on that :sweat_smile:

Just had another deeper look then.

This seems to be your current configuration:

{
	"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 for more context.

Here’s the fixed configuration:

{
	"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 :slight_smile:

1 Like