eugeneware / docker-wordpress-nginx

A Dockerfile that installs the latest wordpress, nginx and php-fpm.
MIT License
874 stars 381 forks source link

The docker image has not any SMTP server #6

Open vampolo opened 10 years ago

vampolo commented 10 years ago

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?

eugeneware commented 10 years ago

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.

jrthib commented 10 years ago

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.

lvnilesh commented 9 years ago

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

denzuko commented 9 years ago

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.