Title: Deactivate the wp_mail function
Last modified: August 21, 2016

---

# Deactivate the wp_mail function

 *  [elpix](https://wordpress.org/support/users/elpix/)
 * (@elpix)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/deactivate-the-wp_mail-function/)
 * Hi everyone,
 * The plugin is working well, but sometimes, some mails are not sending by Mandrill
   but by the default wp_mail function.
    I think it’s 1 per 1000 emails someting
   like that.
 * It’s a problem for me because the HTML is not displayed, there is no template
   etc.
 * So I would like to know how to block WP to send emails with his own function.
 * Is it possible ?
 * [http://wordpress.org/plugins/wpmandrill/](http://wordpress.org/plugins/wpmandrill/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [MC_Will](https://wordpress.org/support/users/mc_will/)
 * (@mc_will)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/deactivate-the-wp_mail-function/#post-4285370)
 * Hi elpix.
 * No, there’s no way to do this. They are being sent through the build-in wp_mail
   function because they couldn’t get sent by wpMandrill.
 * You should try to figure out why. A good place to start is the wordpress log 
   file. Look for any entry created by wpMandrill. It should give you a hint about
   what was going on.
 * Additionally, you could try to determine what’s the difference between that 1/
   1000 and the rest. Probably they use attachments? Probably they are being sent
   by a specific plugin?

Viewing 1 replies (of 1 total)

The topic ‘Deactivate the wp_mail function’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wpmandrill_171717.svg)
 * [wpMandrill](https://wordpress.org/plugins/wpmandrill/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpmandrill/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpmandrill/)
 * [Active Topics](https://wordpress.org/support/plugin/wpmandrill/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpmandrill/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpmandrill/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [MC_Will](https://wordpress.org/support/users/mc_will/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/deactivate-the-wp_mail-function/#post-4285370)
 * Status: not resolved