It would be possible to install nodemailer on a docker image?
Nodemailer is just an npm package:
So, as long as you have a Docker image that has node, you can install it there.
1 Like
Thanks Janis. I dont understand how email works. Transactional emails are configured by default? Just mailgun needed for bulk sending? It would be possible to install a ghost on docker with nodemailer instaled?
Nodemailer is “built in” to Ghost. You do not need to install it.
However, for transactional emails you will need to set them up:
The setup is the same in Docker as it is for other installations. The difference is that it’s probably easier to just set environment variables:
So, this:
"mail": {
"transport": "SMTP",
"options": {
"service": "Mailgun",
"auth": {
"user": "postmaster@example.mailgun.org",
"pass": "1234567890"
}
}
},
Would then become:
mail__transport="SMTP"
mail__options__service="Mailgun"
mail__options__auth__user="postmaster@example.mailgun.org"
mail__options__auth__pass="1234567890"
1 Like