docker-wordpress-nginx icon indicating copy to clipboard operation
docker-wordpress-nginx copied to clipboard

The docker image has not any SMTP server

Open vampolo opened this issue 11 years ago • 4 comments

when wordpress tries to use the php mail function the mail is not sent because there is not any SMTP server on the container.

How would you suggest to handle this functionality?

vampolo avatar Oct 02 '13 03:10 vampolo

I would point the SMTP server to your actual SMTP server, or use something like SendGrid (which is how Heroku does this).

And use a plugin like this: http://serversmtp.com/en/smtp-wordpress-configure

To change the SMTP settings.

eugeneware avatar Oct 03 '13 00:10 eugeneware

What about installing postfix which would give this the option to work out of the box? Additionally the user could opt to send their SMTP elsewhere.

jrthib avatar Jan 02 '14 21:01 jrthib

or use mandrill SMTP if you prefer https://wordpress.org/plugins/wpmandrill/

lvnilesh avatar Aug 19 '15 17:08 lvnilesh

Or use google smtp. The point being a smtp server does not need to be local to the web application server. Especially within a containerized environment where its easier to just do docker run catatnight/postfix to have a full email server up and running without having your web server open to hacks.

denzuko avatar Aug 20 '15 15:08 denzuko