Title: Send mail using built-in `wp_mail` function
Last modified: August 30, 2016

---

# Send mail using built-in `wp_mail` function

 *  Resolved [Sudar Muthu](https://wordpress.org/support/users/sudar/)
 * (@sudar)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/send-mail-using-built-in-wp_mail-function/)
 * Hello,
 * I am the author of [Email Log](https://wordpress.org/plugins/email-log/) WordPress
   plugin that allows users to log emails that are sent through WordPress.
 * Recently a user of my plugin [complained that the mails that are sent through MailPoet plugin are not getting logged](https://github.com/sudar/email-log/issues/29).
 * Upon investigating I found that you are sending the mails directly using PHP’s`
   mail` function, instead of calling WordPress built-in `wp_mail` function which
   calls the filters that allows emails to be logged.
 * Is there any specific reason for doing it? Also can you consider using `wp_mail`
   function instead? If you can’t can you atleast call the filters so that emails
   could be logged?
 * If you need any more technical information regarding this then do let me know.
 * [https://wordpress.org/plugins/wysija-newsletters/](https://wordpress.org/plugins/wysija-newsletters/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [Wysija](https://wordpress.org/support/users/wysija/)
 * (@wysija)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/send-mail-using-built-in-wp_mail-function/#post-6882706)
 * There are several reasons we can’t use wp_mail() function. If for some reason,
   you’ll need to use it, there’s a tip here: [http://cfxdesign.com/email-wordpress-posts-to-subscribers-with-mandrill-and-mailpoet/](http://cfxdesign.com/email-wordpress-posts-to-subscribers-with-mandrill-and-mailpoet/)
 * The next version of MailPoet will come with wp_mail() as a sending method option.
 *  Thread Starter [Sudar Muthu](https://wordpress.org/support/users/sudar/)
 * (@sudar)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/send-mail-using-built-in-wp_mail-function/#post-6882726)
 * > There are several reasons we can’t use wp_mail() function.
 * But can you consider atleast calling the filters? This will enable other plugins
   that depend on this filter like mine.
 * > The next version of MailPoet will come with wp_mail() as a sending method option
 * Will look forward for it, but as I said if you can add the filters even for non`
   wp_mail` functions, that would be very helpful.
 *  [Wysija](https://wordpress.org/support/users/wysija/)
 * (@wysija)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/send-mail-using-built-in-wp_mail-function/#post-6882749)
 * Unfortunately, we are not adding any modifications to the current version of 
   the plugin.
 *  Thread Starter [Sudar Muthu](https://wordpress.org/support/users/sudar/)
 * (@sudar)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/send-mail-using-built-in-wp_mail-function/#post-6882772)
 * All right. I will just had a note in my plugin FAQ’s saying that it is not compatible
   with your plugin for now.
 * I will revisit it again once you have enabled the option to send email through
   wp_mail
 *  [oldmankit](https://wordpress.org/support/users/oldmankit/)
 * (@oldmankit)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/send-mail-using-built-in-wp_mail-function/#post-6882809)
 * Email Log is a really useful plugin, and there have been several times when I
   wanted to check what emails MailPoet has sent, but have been unable to.
 * Looking forward to when this might be possible!
 *  [MadsSafi](https://wordpress.org/support/users/madssafi/)
 * (@madssafi)
 * [10 years ago](https://wordpress.org/support/topic/send-mail-using-built-in-wp_mail-function/#post-6882834)
 * Me too, I would love to see my MailPoet-mails in the Email log!
    Hopefully you
   will be able to update the plugin, so the 2 plugins work nicely together… 🙂 
   Mads
 *  [Stefano](https://wordpress.org/support/users/ste_95/)
 * (@ste_95)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/send-mail-using-built-in-wp_mail-function/#post-6882837)
 * > The next version of MailPoet will come with wp_mail() as a sending method option.
 * Any updates on this? 🙂

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Send mail using built-in `wp_mail` function’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wysija-newsletters_ffddcc.svg)
 * [MailPoet Newsletters (Previous)](https://wordpress.org/plugins/wysija-newsletters/)
 * [Support Threads](https://wordpress.org/support/plugin/wysija-newsletters/)
 * [Active Topics](https://wordpress.org/support/plugin/wysija-newsletters/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wysija-newsletters/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wysija-newsletters/reviews/)

## Tags

 * [wp_mail](https://wordpress.org/support/topic-tag/wp_mail/)

 * 7 replies
 * 5 participants
 * Last reply from: [Stefano](https://wordpress.org/support/users/ste_95/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/send-mail-using-built-in-wp_mail-function/#post-6882837)
 * Status: resolved