Setup member newsletter for Ghost with Mailgun
Run Ghost via docker
Enable members
Setup Mailgun
Get an account
Create and verify your domain
Edit config file
docker exec -it ghost bash and then, once you are inside your container, use vim config.production.json to edit your configuration
Press i to enter insert mode, and then add then make sure your configuration looks something like this:
"mail": {
"from": "'YOURNAME' <noreply@YOURDOMAIN.com>",
"transport": "SMTP",
"options": {
"service": "Mailgun",
"host": "smtp.eu.mailgun.org",
"port": 587,
"auth": {
"user": "postmaster@YOURDOMAIN.com",
"pass": "YOURPASSWORD"
}
}
}
Press Esc to get out of insert mode, then type :wq to save the file. Once you are out, press exit to get out of the container bash, and type docker restart ghost.