clean-docker / Magento2

Docker Image to Magento 2 local development in Mac, Linux and Windows
https://hub.docker.com/r/rafaelcgstz/magento2/
MIT License
444 stars 251 forks source link

Is it possible to turn off Mailhog and sending emails? #100

Closed zhou9110 closed 4 years ago

zhou9110 commented 4 years ago

Hi, I would like to send emails to some real receivers. And wondering what is the best way to bypass mailhog and send emails via third party SMTP services.

So far I have installed a SMTP module in the Magento store (magento2-smtp) and have found the relevant config

sendmail_path = "/opt/go/bin/mhsendmail --smtp-addr='mailhog:1025'"

in the file in .docker/config/php.ini and /usr/local/etc/php/php.ini in the container. I am not sure which value what should I change the sendmail_path to. Any guidance or link to a blog would be appreciated! 😄

rafaelstz commented 4 years ago

Hi, You can do it by commenting this line and restart the container.