Title: Invoke default wp_mail behaviour on cURL errors
Last modified: June 22, 2017

---

# Invoke default wp_mail behaviour on cURL errors

 *  [martijnn94](https://wordpress.org/support/users/martijnn94/)
 * (@martijnn94)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/invoke-default-wp_mail-behaviour-on-curl-errors/)
 * Due to recent DNS lookup problems I found out that emails that are tried to be
   send but stumble upon a cURL error invoking the Mailgun API are just vaporised.
   There are no logs or any notice that there are emails that failed to be sent.
 * Would it be an idea to invoke the default wp_mail as fallback when the Mailgun
   API call fails? Or keep a log on the site side?
 * Thanks in advance.

The topic ‘Invoke default wp_mail behaviour on cURL errors’ 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/)

 * 0 replies
 * 1 participant
 * Last reply from: [martijnn94](https://wordpress.org/support/users/martijnn94/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/invoke-default-wp_mail-behaviour-on-curl-errors/)
 * Status: not resolved