wp_mail() inside AJAX handler never returns

You can do some simple debugging: Try: wp_mail(‘youremail@com’, ‘123’, ‘123’); // to see if it will go through If #1 is not, check if you setup SMTP correctly // install a smpt plugin(wp smtp mail/easy wp smtp) and send a test email If you can’t send out a test email by plugin, check if your … Read more

wp_mail: An array as $to – multiple emails or single email with all the email ids in it?

Yes, you can use an array of recipients: * @param string|array $to Array or comma-separated list of email addresses to send message. * @param string $subject Email subject * @param string $message Message contents * @param string|array $headers Optional. Additional headers. * @param string|array $attachments Optional. Files to attach. * @return bool Whether the email … Read more