Mailpit

Local uses Mailpit to capture emails sent from a site.

More specifically, any email that is sent using the PHP mail() function will be captured. Because WordPress’ wp_mail() function uses mail() under-the-hood, you can test emails for a site without actually sending them to the end user.

You can get a feel for using Mailpit by resetting the password for a WordPress user:

  1. Ensure you are logged out of the WP admin and that the “One-click Admin” setting is set to “off”
  2. Navigate to the WordPress login screen by clicking the “WP Admin” button
  3. Click the “Lost your password?” link
  4. Provide either the username or email
  5. Within Local, click the “Tools > Mailpit > Open Mailpit” button
  6. Review the emails that were captured by Mailpit!