Skip to main content

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.

3 comments

Leave a Reply

Your email address will not be published.

Please don’t paste any HTML, Js or PHP code into comments box, use pastebin.com or similar service to share code examples.

Characters left: 1000