WP – not sending email

wp_mail() uses phpMailer which defaults to localhost so if your development server is not configured as a mail server, the email won’t fly.

Use the ‘wp_mail_failed’ action hook to get the WP_Error that’s thrown so you can further troubleshoot the problem.