{"id":2405,"date":"2024-08-29T20:44:35","date_gmt":"2024-08-29T20:44:35","guid":{"rendered":"https:\/\/localwp.com\/?post_type=help&#038;p=2405"},"modified":"2024-08-29T20:45:18","modified_gmt":"2024-08-29T20:45:18","slug":"mailpit","status":"publish","type":"help","link":"https:\/\/localwp.com\/help-docs\/local-features\/mailpit\/","title":{"rendered":"Mailpit"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Local uses <a href=\"https:\/\/mailpit.axllent.org\/\">Mailpit<\/a> to capture emails sent from a site.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">More specifically, any email that is sent using the <a href=\"https:\/\/www.php.net\/manual\/en\/function.mail.php\">PHP mail() function<\/a> will be captured. Because WordPress&#8217; <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_mail\/\">wp_mail()<\/a> function uses <code>mail()<\/code> under-the-hood, you can test emails for a site without actually sending them to the end user.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can get a feel for using Mailpit by resetting the password for a WordPress user:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Ensure you are logged out of the WP admin and that the &#8220;One-click Admin&#8221; setting is set to &#8220;off&#8221;<\/li>\n\n\n\n<li>Navigate to the WordPress login screen by clicking the &#8220;WP Admin&#8221; button<\/li>\n\n\n\n<li>Click the &#8220;Lost your password?&#8221; link<\/li>\n\n\n\n<li>Provide either the username or email<\/li>\n\n\n\n<li>Within Local, click the &#8220;Tools &gt; Mailpit &gt; Open Mailpit&#8221; button<\/li>\n\n\n\n<li>Review the emails that were captured by Mailpit!<\/li>\n<\/ol>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<figure class=\"wp-block-video alignwide\"><video height=\"1510\" style=\"aspect-ratio: 2336 \/ 1510;\" width=\"2336\" controls src=\"https:\/\/localwp.com\/wp-content\/uploads\/2024\/08\/reset-wp-password-with-mailpit.mp4\"><\/video><\/figure>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Local comes with Mailpit to capture emails sent by a WordPress site in Local.<\/p>\n","protected":false},"author":49,"parent":800,"menu_order":0,"template":"","tags":[38,41],"helpcategories":[62],"class_list":["post-2405","help","type-help","status-publish","hentry","tag-core-features","tag-features","helpcategories-features"],"acf":{"help_keywords":"email"},"_links":{"self":[{"href":"https:\/\/localwp.com\/wp-json\/wp\/v2\/help-doc\/2405","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/localwp.com\/wp-json\/wp\/v2\/help-doc"}],"about":[{"href":"https:\/\/localwp.com\/wp-json\/wp\/v2\/types\/help"}],"author":[{"embeddable":true,"href":"https:\/\/localwp.com\/wp-json\/wp\/v2\/users\/49"}],"version-history":[{"count":0,"href":"https:\/\/localwp.com\/wp-json\/wp\/v2\/help-doc\/2405\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/localwp.com\/wp-json\/wp\/v2\/help-doc\/800"}],"wp:attachment":[{"href":"https:\/\/localwp.com\/wp-json\/wp\/v2\/media?parent=2405"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/localwp.com\/wp-json\/wp\/v2\/tags?post=2405"},{"taxonomy":"helpcategories","embeddable":true,"href":"https:\/\/localwp.com\/wp-json\/wp\/v2\/helpcategories?post=2405"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}