# Mailhog not catching mails on Windows

**URL:** <https://community.localwp.com/t/mailhog-not-catching-mails-on-windows/19409>\
**Category:** Support\
**Created:** [May 11, 2020, 8:51am UTC](https://community.localwp.com/t/mailhog-not-catching-mails-on-windows/19409 "2020-05-11T08:51:19Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![maurolocal](https://avatars.discourse-cdn.com/v4/letter/m/c67d28/32.png) [@maurolocal](https://community.localwp.com/u/maurolocal)\
**Post date:** [May 11, 2020, 8:51am UTC](https://community.localwp.com/t/mailhog-not-catching-mails-on-windows/19409/1 "2020-05-11T08:51:19Z")

</div>

Hi, I recently installed a third site I’m working on with local. Mailhog is not catching emails and I don’t know why.

- I have no email plugin that could affect default settings
- My other sites are catching email just fine, same OS, same browsers, same computer.
- SSL certificate is trusted
- Tried changing site domain
- Stopped site and restarted a few times
- Restarted computer

Is there a setting I could do? where can I check if there are issues?

---

<div class="post-metadata">

**Author:** ![MartinJ](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@MartinJ](https://community.localwp.com/u/MartinJ)\
**Post date:** [May 11, 2020, 7:26pm UTC](https://community.localwp.com/t/mailhog-not-catching-mails-on-windows/19409/2 "2020-05-11T19:26:37Z")

</div>

I have the same problem. But worst, because since I instaled Local on my windows PC I could never recibe any emails in mailhog.

I have looked up for help in many sites (including support questions at [localwp.com/community](http://localwp.com/community)) but I can´t find how to fix it!!

Any help will be welcome.

Thanks, Martín

---

<div class="post-metadata">

**Author:** ![clay](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clay/32/8248_2.png) [@clay](https://community.localwp.com/u/clay)\
**Post date:** [May 11, 2020, 9:29pm UTC](https://community.localwp.com/t/mailhog-not-catching-mails-on-windows/19409/3 "2020-05-11T21:29:49Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![maurolocal](https://avatars.discourse-cdn.com/v4/letter/m/c67d28/32.png) [@maurolocal](https://community.localwp.com/u/maurolocal)\
**Post date:** [May 11, 2020, 10:36pm UTC](https://community.localwp.com/t/mailhog-not-catching-mails-on-windows/19409/4 "2020-05-11T22:36:47Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![MartinJ](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@MartinJ](https://community.localwp.com/u/MartinJ)\
**Post date:** [May 12, 2020, 1:05am UTC](https://community.localwp.com/t/mailhog-not-catching-mails-on-windows/19409/5 "2020-05-12T01:05:32Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Craager](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/craager/32/10450_2.png) [@Craager](https://community.localwp.com/u/Craager)\
**Post date:** [May 13, 2020, 1:07pm UTC](https://community.localwp.com/t/mailhog-not-catching-mails-on-windows/19409/6 "2020-05-13T13:07:51Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![clay](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clay/32/8248_2.png) [@clay](https://community.localwp.com/u/clay)\
**Post date:** [May 14, 2020, 2:53pm UTC](https://community.localwp.com/t/mailhog-not-catching-mails-on-windows/19409/7 "2020-05-14T14:53:17Z")

</div>

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](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.

---

<div class="post-metadata">

**Author:** ![maurolocal](https://avatars.discourse-cdn.com/v4/letter/m/c67d28/32.png) [@maurolocal](https://community.localwp.com/u/maurolocal)\
**Post date:** [May 14, 2020, 3:45pm UTC](https://community.localwp.com/t/mailhog-not-catching-mails-on-windows/19409/8 "2020-05-14T15:45:29Z")

</div>

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

[local-lightning.log](https://community.localwp.com/uploads/short-url/wDOOZ6wX3l7kq1VX2nlSgoGt25B.log) (293.1 KB)

---

<div class="post-metadata">

**Author:** ![MartinJ](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@MartinJ](https://community.localwp.com/u/MartinJ)\
**Post date:** [May 14, 2020, 5:47pm UTC](https://community.localwp.com/t/mailhog-not-catching-mails-on-windows/19409/9 "2020-05-14T17:47:09Z")

</div>

Thank you! Here goes mine.  
[local-lightning.log](https://community.localwp.com/uploads/short-url/92UPhPvdx09Co7gCTRKcJ0O9Y4E.log) (94.0 KB)

Regards!

---

<div class="post-metadata">

**Author:** ![clay](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clay/32/8248_2.png) [@clay](https://community.localwp.com/u/clay)\
**Post date:** [May 14, 2020, 7:59pm UTC](https://community.localwp.com/t/mailhog-not-catching-mails-on-windows/19409/10 "2020-05-14T19:59:28Z")

</div>

Hey all,

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

Thanks for all of the logs and details!

---

<div class="post-metadata">

**Author:** ![Craager](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/craager/32/10450_2.png) [@Craager](https://community.localwp.com/u/Craager)\
**Post date:** [May 15, 2020, 12:36pm UTC](https://community.localwp.com/t/mailhog-not-catching-mails-on-windows/19409/11 "2020-05-15T12:36:05Z")

</div>

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

[local-lightning.log](https://community.localwp.com/uploads/short-url/mRYFPBamb0Sth1hn5pVbIqZFbcD.log) (324.7 KB)

---

<div class="post-metadata">

**Author:** ![clay](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clay/32/8248_2.png) [@clay](https://community.localwp.com/u/clay)\
**Post date:** [May 18, 2020, 2:07pm UTC](https://community.localwp.com/t/mailhog-not-catching-mails-on-windows/19409/12 "2020-05-18T14:07:08Z")

</div>

> [@Craager](#):
>
> I think my problem is different, I’m just can’t open Mailhog. Attached logs

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

```auto
sendmail_path = "'{{mail.mailhogPath}}' sendmail --smtp-addr={{mail.mailhogSmtpAddr}} mailhog@flywheel.local"

```

to

```auto
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!

---

<div class="post-metadata">

**Author:** ![maurolocal](https://avatars.discourse-cdn.com/v4/letter/m/c67d28/32.png) [@maurolocal](https://community.localwp.com/u/maurolocal)\
**Post date:** [May 18, 2020, 5:00pm UTC](https://community.localwp.com/t/mailhog-not-catching-mails-on-windows/19409/13 "2020-05-18T17:00:20Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![maurolocal](https://avatars.discourse-cdn.com/v4/letter/m/c67d28/32.png) [@maurolocal](https://community.localwp.com/u/maurolocal)\
**Post date:** [May 18, 2020, 5:02pm UTC](https://community.localwp.com/t/mailhog-not-catching-mails-on-windows/19409/14 "2020-05-18T17:02:35Z")

</div>

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

Thanks!

---

<div class="post-metadata">

**Author:** ![maurolocal](https://avatars.discourse-cdn.com/v4/letter/m/c67d28/32.png) [@maurolocal](https://community.localwp.com/u/maurolocal)\
**Post date:** [May 19, 2020, 2:45am UTC](https://community.localwp.com/t/mailhog-not-catching-mails-on-windows/19409/15 "2020-05-19T02:45:52Z")

</div>

Hello there,

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

Thank you for helping!

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [May 19, 2020, 2:45pm UTC](https://community.localwp.com/t/mailhog-not-catching-mails-on-windows/19409/16 "2020-05-19T14:45:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![clay](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clay/32/8248_2.png) [@clay](https://community.localwp.com/u/clay)\
**Post date:** [May 19, 2020, 6:42pm UTC](https://community.localwp.com/t/mailhog-not-catching-mails-on-windows/19409/17 "2020-05-19T18:42:55Z")

</div>



---

<div class="post-metadata">

**Author:** ![clay](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clay/32/8248_2.png) [@clay](https://community.localwp.com/u/clay)\
**Post date:** [May 19, 2020, 6:43pm UTC](https://community.localwp.com/t/mailhog-not-catching-mails-on-windows/19409/18 "2020-05-19T18:43:53Z")

</div>

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](https://feedback.localwp.com/bug-reports/p/mailhog-is-not-intercepting-e-mail-on-windows) for tracking’s sake!

---

<div class="post-metadata">

**Author:** ![MartinJ](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@MartinJ](https://community.localwp.com/u/MartinJ)\
**Post date:** [May 25, 2020, 6:59pm UTC](https://community.localwp.com/t/mailhog-not-catching-mails-on-windows/19409/19 "2020-05-25T18:59:31Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![idealien](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/idealien/32/7944_2.png) [@idealien](https://community.localwp.com/u/idealien)\
**Post date:** [June 4, 2020, 3:01am UTC](https://community.localwp.com/t/mailhog-not-catching-mails-on-windows/19409/20 "2020-06-04T03:01:31Z")

</div>

> [@clay](#):
>
> 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!

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.

[Next page](https://community.localwp.com/t/mailhog-not-catching-mails-on-windows/19409.md?page=2)
