I'm currently having a problem in which wp_mail sends only one email where two are asked for.
It happens anywhere the wp_mail method is used. It's especially detrimental in that it doesn't send admin emails when a new user is created (but it does send a new email to the user informing them of their new password).
In addition, I'm getting an error from the retrieve password portion of logon.php: "The e-mail could not be sent."
I know that wp_mail is working, as it sends the mail to the user. More detail: when I started debugging the code, I noticed that it only sends the second email if two emails are coded.
Example:
wp_mail($email, "test 1", "test 1");
wp_mail($email, "test 2", "test 2");
In this case, I only get the email "test 2".
I have the mail set to use SMTP and the server is a Windows box running IIS 7 with PHP installed.
I've spent two days on this already and I'm stumped. I've searched the web and these forums for an answer but did not find anything that pertains to this specific problem.