WordPress.org

Ready to get started?Download WordPress

Forums

wpMandrill
Stop writing to debug log and stop using wp_mail as fallback (2 posts)

  1. spearhead
    Member
    Posted 1 year ago #

    How do I stop wpMandrill from writing to debug log? I am not interested in turning off debugging (I use it to debug other code). I am just interested in stoping wpMandrill from writing to log.

    Secondly, it appears that wpMandrill on failure would fallback to wp_mail. How can I avoid this? It would be better if wpMandrill just returns false or error on failure.

    http://wordpress.org/extend/plugins/wpmandrill/

  2. MC_Will
    Member
    Plugin Author

    Posted 1 year ago #

    Hello,

    We write on the log whenever there's a situation that might requires future analysis. if you activate the WP_DEBUG constant, we write even more information to the log. I don't think this is going to change. What we could do is to prevent the html and text field to appear in the log.

    If you use wp_mail to send you email, and you have activated the wpMandrill plugin, it will try to send your message no matter what. It implies that if for some reason Mandrill can't send your message, it will defaults back to the original wp_mail function. Returns false or failure is not an option for many reasons. We might add a flag to prevent this behavior if we got more request about this.

    In the meantime, to prevent this to happen don't use wp_mail... use wpMandrill::mail instead. It will return a catchable error (actually, a WP_Error).

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags