Can't figure out how to setup email

If you’re looking for some help, it’s important to provide as much context as possible so that people are able to assist you. Try to always mention:

  • What’s your URL?
  • What version of Ghost are you using? 2.6.1
  • What configuration? Self Hosted
  • What browser? Chrome
  • What errors or information do you see in the console? Failed to send email. Reason: connect ETIMEDOUT
  • What steps could someone else take to reproduce the issue you’re having? Tried to change the configuration file but to no avail.

I am using a Gmail account as the SMTP server.

Could there be something to do with the following error when restarting ghost?

  1. Validating config

Error detected in the production configuration.

Message: Config file is not valid JSON

Yep, run your config through a JSON validator (for example, and make sure it passes :)

1 Like

google translate

I’ve followed your steps but receive the following error:

Request was rejected due to server error

This is my file:

"mail": {
		"from": "<>",
		"transport": "SMTP",
		"options": {
			"service": "Gmail",
			"host": "",
			"port": 465,
			"secureConnection": true,
			"auth": {
				"user": "",
				"pass": "password"

I found out that Digital Ocean, blocks all SMTP ports. Any way to go around this? I also signed up for Mailgun and still can’t send out emails.

I use aliyun,it’s dashboard can open port 465/465 for output direction

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.