Out of the box, Wordpress can't send email as the container has no MTA installed.
PHP unfortunately cannot be configured to use an SMTP Server on Linux/Unix platforms (the smtp directive is reserved for win32), which is extremely unhelpful.
Wordpress also doesn't have native support for configuring an SMTP Server, this has to be handled via a plugin.
Would there be any appetite for bundling ssmtp in the official image? SMTP_ environment variables could be passed in to configure it. I'd be happy to do the work and submit a pull request.
I appreciate that there are benefits to shipping a lean image. On the flip side, this would make providing email to the stock Docker image extremely trivial and much easier for end-users.
Out of the box, Wordpress can't send email as the container has no MTA installed.
PHP unfortunately cannot be configured to use an SMTP Server on Linux/Unix platforms (the smtp directive is reserved for win32), which is extremely unhelpful.
Wordpress also doesn't have native support for configuring an SMTP Server, this has to be handled via a plugin.
Would there be any appetite for bundling ssmtp in the official image? SMTP_ environment variables could be passed in to configure it. I'd be happy to do the work and submit a pull request.
I appreciate that there are benefits to shipping a lean image. On the flip side, this would make providing email to the stock Docker image extremely trivial and much easier for end-users.