Skip to content
Advertisement

Send email on testing docker container with php and sendmail

I’m on ubuntu 16.04. I have a (testing) docker (docker-compose) container running php 5.6 and apache 2.4.

On the production platform (without docker) the mail is sent with sendmail.

How to send test email on docker container (with sendmail)?

Thanks in advance for responses.

Advertisement

Answer

It works.

In Dockerfile :

JavaScript

For testing inside php sendmail container :

JavaScript

I succeed with the help of this two documents :

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement