Title: PHP mail() function not using Mailgun
Last modified: January 26, 2017

---

# PHP mail() function not using Mailgun

 *  Resolved [franciscus](https://wordpress.org/support/users/franciscus/)
 * (@franciscus)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/php-mail-function-not-using-mailgun/)
 * I installed and configured the mailgun plugin and assumed that it would intercept
   and redirect all calls to the PHP mail function (as Postman SMTP does).
    However,
   that doesn’t seem to be the case. Is there something special I need to do?

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

 *  Thread Starter [franciscus](https://wordpress.org/support/users/franciscus/)
 * (@franciscus)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/php-mail-function-not-using-mailgun/#post-8703441)
 * Ignore this question.
 * I was testing on localhost (Windows), When I tested on a real server it worked
   first time.
 * Sorry for the noise.
 *  Plugin Author [Mailgun](https://wordpress.org/support/users/mailgun/)
 * (@mailgun)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/php-mail-function-not-using-mailgun/#post-8707741)
 * No worries! Glad you got it working.

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

The topic ‘PHP mail() function not using Mailgun’ is closed to new replies.

 * ![](https://ps.w.org/mailgun/assets/icon-256x256.png?rev=2434524)
 * [Mailgun for WordPress](https://wordpress.org/plugins/mailgun/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mailgun/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mailgun/)
 * [Active Topics](https://wordpress.org/support/plugin/mailgun/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mailgun/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mailgun/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Mailgun](https://wordpress.org/support/users/mailgun/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/php-mail-function-not-using-mailgun/#post-8707741)
 * Status: resolved