Sendgrid issue - file is not valid json

Hi All, my server couldnt send emails, i’m using AWS
so i managed to change the config file SMTP settings, however it did not work also.

Can you kindly check my file and let me know what i made wrong?

{
	"database": {
		"client": "mysql",
		"connection": {
			"host": "127.0.0.1",
			"port": 3306,
			"database": "bitnami_ghost",
			"user": "bn_ghost",
			"password": "XX"
		}
	},
	"url": "XX",
	"server": {
		"port": 2368,
		"host": "0.0.0.0"
	},
	"logging": 
	{
		"transports": [
		"mail": 
		{
			"file",
		] 
		"from": "XX",},
		"transport": "SMTP",
		"process": "local",
		"paths": {
			"options": {
				"contentPath": "/opt/bitnami/ghost/content"
				"host": "smtp.sendgrid.net",
			}
		}
		"service": "Sendgrid",
		"port": "587",
		"secure": true,
		"auth": {
			"user": "XX",
			"pass": "XX"
		}
	}
},

Hi, Somehow you broke the Json format.

Here is a valid format with Sendgrid SMTP settings

{
  "url": "https://yourdomain.com",
  "server": {
    "port": 2368,
    "host": "127.0.0.1"
  },
  "database": {
		"client": "mysql",
		"connection": {
			"host": "127.0.0.1",
			"port": 3306,
			"database": "bitnami_ghost",
			"user": "bn_ghost",
			"password": "XX"
		}
	},
  "mail": {
    "transport": "SMTP",
    "options": {
      "service": "Sendgrid",
      "host": "smtp.sendgrid.net",
      "port": 587,
      "secure": true,
      "auth": {
        "user": "apikey",
        "pass": "add-your-sendgrid-api-key-here"
      }
    }
  },
  "logging": {
    "transports": [
      "file",
      "stdout"
    ]
  },
  "process": "local",
  "paths": {
    "contentPath": "/opt/bitnami/ghost/content"
  }
}

adjust the creds, save the file & reboot ghost… It will work

Thanks man :blue_heart:

You are welcome!