Local Community

Mailhog not catching mails on Windows

Hi all,

Sorry for the trouble with MailHog!

Are you both able to open up MailHog on the sites where it’s failing to catch the e-mail?


@maurolocal,

What operating system are you using?

1 Like

Hi @clay

I am able to open MailHog. I have 3 sites on local and the other two are working just fine.

OS is Windows 10 home 64bit x64 version 1903 build 18362.778.

I reinstalled latest local version today also, no luck.

Any troubleshooting tips I could use? I am building a marketplace and cant test vendor accounts bc of this.

Thanks!

Hi @clay thank you for your help!

I am able to open up MailHog from Local utilities, it opens fine but it never receives any email!

I have tried creating new local sites with different configurations and check if I receive any email, no luck with any of them.

I also reinstalled Local today, no luck either.

I have the exact same problem than Maurolocal, I am building a marketplace and I don´t recieive vendors emails. As I thought It may be a woocommerce / vendors or wp configuration problem I have tried logging out and choosing “forget your password” from the singing in wp-admin site, to check if I recieve an mail from that action, no luck either.

My system is Windows home 10, Version 10.0.18362 Build 18362 x64

Thanks again, Martín

Hey.

I’m unable to open Mailhog at all.

Today I wanted to test emails, but I can’t open it by clicking on “Utilities -> Open Mailhog”. Unfortunately, I don’t know which update caused this bug, as I haven’t used Mailhog for a while.

Thank you.

Thanks for the details @MartinJ!


@Craager @MartinJ @maurolocal,

If MailHog is opening but not receiving e-mail, it sounds like it may not have an SMTP port allocated.

Can you all please provide your local-lightning.log file? See https://localbyflywheel.com/community/t/how-do-i-retrieve-locals-log-file/3720 for instructions on how to do so.

Thanks for your patience regarding this! We’re eager to figure out exactly what’s happening.

1 Like

Hey @clay thank you for getting back to us. Here’s my log file.

local-lightning.log (293.1 KB)

1 Like

Thank you! Here goes mine.
local-lightning.log (94.0 KB)

Regards!

1 Like

Hey all,

We were able to reproduce this issue on Windows on our end.

Thanks for all of the logs and details!

1 Like

I think my problem is different, I’m just can’t open Mailhog. Attached logs

local-lightning.log (324.7 KB)

This is a regression in Local 5.4.2 that will be resolved this week. In the meantime, you can downgrade to 5.4.1 and it should take care of the issue!


Regarding MailHog not intercepting e-mail on Windows, we’ve tracked this down to a config regression in a recent fix.

To work around this issue, you can:

  1. Open up your site’s conf/php/php.ini.hbs file (conf is adjacent to the site’s app directory)
  2. Change
    sendmail_path = "'{{mail.mailhogPath}}' sendmail --smtp-addr={{mail.mailhogSmtpAddr}} mailhog@flywheel.local"
    
    to
    sendmail_path = '"{{mail.mailhogPath}}" sendmail --smtp-addr={{mail.mailhogSmtpAddr}} mailhog@flywheel.local'
    
  3. Restart the site

Please note, we’re going to be improving testing around functionality like MailHog in the near future to help catch potential regressions like these in the future.

Sorry for the trouble!

5 Likes

Hello @Clay. Thanks for letting us know, glad to help.
How can we resolve the issue now that you are able to reproduce?
I need to get it working in order to move fwd with my project.

Just saw your posting on top of mine with a workaround. Will try and let you know if it works.

Thanks!

Hello there,

On my end the issue is resolved apparently. All mails are being catched by mailHog.

Thank you for helping!

1 Like

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.

Hi all,

If you are running into this issue or use the workaround, be sure to vote up https://feedback.localwp.com/bug-reports/p/mailhog-is-not-intercepting-e-mail-on-windows for tracking’s sake!

Hi @Clay it worked out fine! Thanks a lot!!
Sorry for the late answer!
Regards

This continues to be an issue as of 5.5.3 - although the workaround does continue to work. Note that the difference in workaround is the order/type of quote wrapping rather than changes in parameters.

Hi,

I have the same issue with local 5.5.3 +3667

Here my log local-lightning.log (33.4 KB)

Mailhog didn’t catch any email since lastet update on windows

Hi,
I have the same issue with below.
-Local version : 5.5.3 +3667
-Web server : Nginx
-PHP version: 7.3.5
-OS: Windows 10 Home, build 10.0.18362

But fortunately, when I changed PHP version to 7.4.1,
the issue was solved.
Now MailHog can catch mails on my PC.

Here my log
local-lightning.log (156.7 KB)

I hope this information will useful for all.