WordPress.org

Support

Support » Plugins and Hacks » wpMandrill » [Plugin: wpMandrill] Stop writing to debug log and stop using wp_mail as fallback

[Plugin: wpMandrill] Stop writing to debug log and stop using wp_mail as fallback

  • 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/

Viewing 1 replies (of 1 total)
  • Plugin Author MC_Will

    @mc_will

    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).

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: wpMandrill] Stop writing to debug log and stop using wp_mail as fallback’ is closed to new replies.
Skip to toolbar