Ghost - Custom Email configuration of Ghost
Reading Time:
Reading Time:
I spent some time to master the SMTP configuration of my Ghost Docker installation for a custom email provider so to save others from the same pain(!) (I actually ended up going into the docker container and reading the code...) here is how I did it ;)
My settings
Find config.js at the top of the directory where you installed Ghost.
Edit the config.js file either by nano or vi - depends on what you prefer.
Replace everything within mail{ } with following:
mail: {
from: 'noreply@example.com',
transport: 'SMTP',
options: {
host: 'send.one.com',
port: 587,
auth: {
user: 'noreply@example.com',
pass: 'password'
}
}
},
Remember the last dash (,) if not you will get errors.
Thats it! Just restart Ghost/Docker container and the config should get loaded.
To test and verify
Log in to Ghost -> Go to Labs -> Click Send under Send a test mail