How to enable SMTP email support for Ghost to invite authors [Solved]

  • Create account with SendGrid and get an API key that has access to send email
  • In your .env file, declare a variable SENDGRID with the above API key as value
  • In init.sh, use this command:
jq ".url=\"https://$PROJECT_DOMAIN.glitch.me\" | .mail={\"from\":\"team@yourdomain.org\", \"transport\":\"SMTP\", \"options\": {\"host\": \"smtp.sendgrid.net\",\"port\": 587, \"auth\": {\"user\":\"apikey\",\"pass\":\"$SENDGRID\"}}}" config.development.json.base > config.development.json

If you found this helpful, please thank me on Glitch (so that I can start using custom domain with it): https://glitch.com/@eshnil

2 Likes