Title: wp_mail() Not Working
Last modified: August 28, 2020

---

# wp_mail() Not Working

 *  Resolved [angeo981](https://wordpress.org/support/users/angeo981/)
 * (@angeo981)
 * [6 years ago](https://wordpress.org/support/topic/wp_mail-not-working-3/)
 * Hi,
    I recently have installed “Ultimate Affiliate Pro” WordPress plugin and 
   after testing the notification options I found that it doesn’t work. I have contacted
   the developer of the plugin and he said that:
 * ” Our plugin use wp_mail() function, basically sends data to wp_mail() and WP
   taking care further how that mail is sent.
    WP Mail SMTP, based on our knowledge,
   may change/customize how wp_mail() works. Still, depends of that script setup,
   not on our plugin. We saw WP Mail SMTP being used very often, on the same website
   where Ultimate Affiliate Pro plugin is running, without any problem. So, mostly
   for sure can be used together with WP Mail SMTP plugins, but all depends of how
   this one have been setup. ”
 * In my website “WP Mail SMTP” plugin is set with Mailgun and it is working properly,
   except that particular “Ultimate Affiliate Pro” plugin.
    The developer says that
   their plugin is using the default wp_mail() function, which your WP Mail SMTP
   plugin probably have overwritten.
 * So can you help me fix this? What to do to make this functionality “wp_mail()”
   work for that “Ultimate Affiliate Pro” plugin?
 * …. just to mention that I don’t know scripts coding and etc.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwp_mail-not-working-3%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Sanjeev Aryal](https://wordpress.org/support/users/sanzeeb3/)
 * (@sanzeeb3)
 * [6 years ago](https://wordpress.org/support/topic/wp_mail-not-working-3/#post-13337819)
 * Hi [@angeo981](https://wordpress.org/support/users/angeo981/),
 * Thanks for reaching out. WP Mail SMTP routes all the emails sent with wp_mail()
   to the SMTP provider you’ve configured, Mailgun in your case. Please make sure
   the emails from Ultimate Affiliate Pro is sent from your domain-specific email
   address. Alternatively, you can check the ‘Force From Email’ option in WP Mail
   SMTP > Settings. If this does not solve the problem, Mailgun logs all the emails
   with details of each email. You can [check the logs](https://www.mailgun.com/blog/view-your-messages-in-the-mailgun-control-panel/)
   and see the email details.
 * I hope this helps!
 *  Thread Starter [angeo981](https://wordpress.org/support/users/angeo981/)
 * (@angeo981)
 * [6 years ago](https://wordpress.org/support/topic/wp_mail-not-working-3/#post-13338132)
 * Hi,
    You just save me before I start mess up something that was working fine 
   for so long. I checked the log in Mailgun and I saw that it is sending, but the
   recipient (my yahoo test email) decline the test email: 4.7.0 [TSS04] Messages
   from 69.72.42.3 temporarily deferred due to user complaints – 4.16.55.1; see 
   [https://help.yahoo.com/kb/postma](https://help.yahoo.com/kb/postma)
 * I don’t know why they deferred it, I have never complained of myself.
 * But anyway, now I know that everything is actually working fine and I shouldn’t
   touch anything to make it worse.
 * Have a great day and thank you for your fast response,
 * Angel

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

The topic ‘wp_mail() Not Working’ is closed to new replies.

 * ![](https://ps.w.org/wp-mail-smtp/assets/icon-256x256.png?rev=1755440)
 * [WP Mail SMTP by WPForms - The Most Popular SMTP and Email Log Plugin](https://wordpress.org/plugins/wp-mail-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-mail-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-mail-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-mail-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-mail-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-mail-smtp/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [angeo981](https://wordpress.org/support/users/angeo981/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/wp_mail-not-working-3/#post-13338132)
 * Status: resolved