PHP email function

,

What issue or error are you experiencing?

<?php mail('kumardesai123@gmail.com', 'subject', 'body') ?>

I want to use the PHP mail() function in my local installation of a site I am working on. I ran the basic code but did not receive anything. Question:

  1. Does LocalWP support the email sending function?
  2. If so what do I have to do to get it working?

Thanks all.

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


System Details

  • Local Version:

  • Operating System (OS) and OS version:


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.

Did you check the mailpit software (under Tools for your site in Local)? Mailpit captures all outbound emails from Local environments.

1 Like

Not yet. I’ll take a look. Thanks.

1 Like

Hi @oohkumar -

Please do and let us know if that works!

Sam

Ok I see it. This is perfect thanks.

k

2 Likes