How to work with wp_mail() function or how to work with MailHog?

What issue or error are you experiencing?

I want to have the option to work with sending Email from my local. To work with wp_mail(). I haven’t found any way to work with MailHog. I can just see this:

Anyway, to workaround to work with Email on my Local?

What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc

I have tried to find a way to work with MailHog, but I didn’t find anything useful.

From Email Log, I can see this error

How can I change the FROM email?

System Details

  • Local Version:
    Version 8.2.0+6554
  • Operating System (OS) and OS version:
    MacOS 14.2.1 (23C71)

Local Logs

Attach your Local Logs here (Help Doc - Retrieving Local’s Log)

Security Reminder
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.

Hi @ak8048

Is the problem that you’re getting the Invalid Address error or some other issue?

If you need help or an alternative the links below might help:

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