How to debug wp_mail function

wp_mail function returns ‘1’ if mail is sent, and 0 if mail is not sent but shows no debug info.
Following function will display array of errors, if any.

Leave a Reply

Your email address will not be published. Required fields are marked *