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.


Leave a Reply

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

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

Characters left: 1000