How to integrate with MailHog in order to check emails? #565
Replies: 10 comments 1 reply
-
If you look at MailHog documentation, https://github.com/mailhog/MailHog, you can see the SMTP service is listening by default on 1025. The port is also exposed through docker. So your container should be able to connect to the SMTP server to send email using mailhog:1025 |
Beta Was this translation helpful? Give feedback.
-
Does that mean, we need to install some SMTP extension and configure |
Beta Was this translation helpful? Give feedback.
-
Inside a warden shell, if you run a php -i | grep sendmail, you should see the default email configuration. mhsendmail, the mailhog sendmail replacement should be installed inside your container and pointing to your local mailhog instance. It should work out of the box. Try running this:
|
Beta Was this translation helpful? Give feedback.
-
Following up on Maxime's message, the automatic configuration of PHP's sendmail should result in the Assuming that works, but Magento doesn't - there are a few different things that you should look for:
|
Beta Was this translation helpful? Give feedback.
-
@werfu @navarr grepping
But when I try to send via a custom script (script.php)
And running
|
Beta Was this translation helpful? Give feedback.
-
@MagePsycho I've just tried your script on my env and it worked as expected.
|
Beta Was this translation helpful? Give feedback.
-
@MagePsycho if you run a |
Beta Was this translation helpful? Give feedback.
-
Based on the reference to |
Beta Was this translation helpful? Give feedback.
-
@MagePsycho / @werfu @navarr were you guys ever able to get mailhog emails to work? |
Beta Was this translation helpful? Give feedback.
-
@christian-walker Out of the box, it should "just work". There are some prerequisites though:
Are you running an actual Warden project, or are you trying to use just the Warden docker image itself in your own |
Beta Was this translation helpful? Give feedback.
-
My warden environment is working fine. I can access installed Magento and MailHog (https://mailhog.warden.test/)
But when I place an order or register as a customer, I don't see any emails in MailHog.
Is there any configuration for MailHog with Warden?
Beta Was this translation helpful? Give feedback.
All reactions