Title: [Plugin: wpMandrill] Doesn&#039;t work with Gravity Forms
Last modified: August 20, 2016

---

# [Plugin: wpMandrill] Doesn't work with Gravity Forms

 *  Resolved [justmattb](https://wordpress.org/support/users/mwbarker/)
 * (@mwbarker)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wpmandrill-doesnt-work-with-gravity-forms/)
 * For some reason, this plugin doesn’t catch email sent through Gravity Forms. 
   Gravity Forms works fine with the Configure SMTP plugin activated and going through
   MandrillApp. Gravity Forms uses a function to send email, with this at the end
   to return:
 * `$result = wp_mail($to, $subject, $message, $headers, $attachments);`
 * Is it because of how this is handled that it is not going through wpMandrill?
   Any way to get these two plugins working together?
 * [http://wordpress.org/extend/plugins/wpmandrill/](http://wordpress.org/extend/plugins/wpmandrill/)

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

 *  Thread Starter [justmattb](https://wordpress.org/support/users/mwbarker/)
 * (@mwbarker)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wpmandrill-doesnt-work-with-gravity-forms/#post-2887740)
 * I tried replacing wp_mail in this function, so it looks like this:
 * `$result = wpMandrill::mail($to, $subject, $message, $headers, $attachments);`
 * That didn’t work; never got the email (nor any errors, so not sure where the 
   email went).
 *  Plugin Author [MC_Will](https://wordpress.org/support/users/mc_will/)
 * (@mc_will)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wpmandrill-doesnt-work-with-gravity-forms/#post-2887926)
 * Hello Matt,
 * I just tested wpMandrill on a vanilla wp installation and GravityForm worked 
   fine for me.
 * You can set WP_DEBUG to true in your wp_config.php file and see if you find something
   useful in your logs.
 * It could be a bug I recently found and that haven’t pushed the fix yet. If you
   send more than one attachment in an email, it will fail.
 * This will be fixed in 1.13.
 * Remember that whenever wpMandrill fails to send the email, it silently defaults
   to the native wp_mail function. It leaves a message in the log, though.
 *  Thread Starter [justmattb](https://wordpress.org/support/users/mwbarker/)
 * (@mwbarker)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wpmandrill-doesnt-work-with-gravity-forms/#post-2887929)
 * > It leaves a message in the log, though.
 * What log can I find this in?
 *  Plugin Author [MC_Will](https://wordpress.org/support/users/mc_will/)
 * (@mc_will)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wpmandrill-doesnt-work-with-gravity-forms/#post-2887930)
 * Here’s a nice article about logs. Basically, it depends on how your server is
   configured:
 * [http://wpmu.org/wordpress-troubleshooting-basics-how-to-check-your-error-logs/](http://wpmu.org/wordpress-troubleshooting-basics-how-to-check-your-error-logs/)
 *  Thread Starter [justmattb](https://wordpress.org/support/users/mwbarker/)
 * (@mwbarker)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wpmandrill-doesnt-work-with-gravity-forms/#post-2887931)
 * I was thinking you were dumping to a different log – I get error_log in my main
   public_html folder and also in each plugin’s directory at times. I am not getting
   any error_log entries related to this issue.
 *  Plugin Author [MC_Will](https://wordpress.org/support/users/mc_will/)
 * (@mc_will)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wpmandrill-doesnt-work-with-gravity-forms/#post-2887932)
 * Did you set WP_DEBUG to true in your wp_config file?
 *  Thread Starter [justmattb](https://wordpress.org/support/users/mwbarker/)
 * (@mwbarker)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wpmandrill-doesnt-work-with-gravity-forms/#post-2887934)
 * This is what I get:
 * [12-Jul-2012 15:12:14]
    wpMandrill::sendEmail: Exception Caught => The domain
   of the email you provided has not been verified by Mandrill.
 * This is strange, because wpMandrill sends out all mail successfully with the 
   exception of the Gravity Forms mail.
 *  Plugin Author [MC_Will](https://wordpress.org/support/users/mc_will/)
 * (@mc_will)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wpmandrill-doesnt-work-with-gravity-forms/#post-2887935)
 * Uhmm… Please, make sure that the domain of the email address you are using as
   FROM_EMAIL and REPLY-TO in GF are listed as valid outgoing domains in your Mandrill
   account.
 *  Thread Starter [justmattb](https://wordpress.org/support/users/mwbarker/)
 * (@mwbarker)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wpmandrill-doesnt-work-with-gravity-forms/#post-2887936)
 * Yeah, that was what I just figured out… I was trying to use the from address 
   of the sender, which was then getting rejected by Mandrill. When I use the from
   address from my domain (but keep the FROM name of the sender and just adjust 
   the reply to address) all is well. When I got to looking at that error message,
   everything clicked.
 * Thanks for the help!!!
 *  Thread Starter [justmattb](https://wordpress.org/support/users/mwbarker/)
 * (@mwbarker)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wpmandrill-doesnt-work-with-gravity-forms/#post-2887937)
 * BTW – Changing the REPLY-TO in the form notification settings to the submitter’s
   email address works fine.
 *  Plugin Author [MC_Will](https://wordpress.org/support/users/mc_will/)
 * (@mc_will)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wpmandrill-doesnt-work-with-gravity-forms/#post-2887938)
 * Excellent! Glad it worked!

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

The topic ‘[Plugin: wpMandrill] Doesn't work with Gravity Forms’ 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/)

## Tags

 * [email](https://wordpress.org/support/topic-tag/email/)
 * [GravityForms](https://wordpress.org/support/topic-tag/gravityforms/)
 * [integration](https://wordpress.org/support/topic-tag/integration/)
 * [mandrill](https://wordpress.org/support/topic-tag/mandrill/)

 * 11 replies
 * 2 participants
 * Last reply from: [MC_Will](https://wordpress.org/support/users/mc_will/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wpmandrill-doesnt-work-with-gravity-forms/#post-2887938)
 * Status: resolved