MC_Will
Forum Replies Created
-
Forum: Plugins
In reply to: [wpMandrill] How To Exclude Contact Form 7 mail from Mandrill?Hi,
I don’t know the exact tags CF7 is using but the general template should look like this:
public function excludeCF7($message) { $cf7_tag = 'cf7_actual_tag'; //Replace with actual tag used by CF7 if ( in_array($cf7_tag, $message['tags']['automatic']) ) { $message['force_native'] = true; } return $message; } add_filter('mandrill_payload', 'excludeCF7');
Forum: Plugins
In reply to: [wpMandrill] How To Exclude Contact Form 7 mail from Mandrill?Hi abelljefrry,
You can exclude any email using the mandrill_payload filter.
Once you have identified CF7 emails, probably by checking the automatic tags, just add a field called force_native to the $message received and set it to true.
Forum: Plugins
In reply to: [wpMandrill] Mandrill is changing the names of args in the filterHi Sudar,
Thanks a lot for pointing out this bug. We’ll fix it in the next release.
Our apologies to your users.
Forum: Plugins
In reply to: [wpMandrill] last letter of "from name" is droppedHi Jman,
I couldn’t reproduce this behavior. Can you try to catch the value of the from name variable using the mandrill_payload filter?
Also, wpMandrill uses the build-in wp_mail_from_name filter, so probably an action hooked to that filter is modifying its value.
Thanks lot!
Forum: Plugins
In reply to: [wpMandrill] Wpmandrill – subbacountNo, sorry. It can’t be done through the settings yet.
Forum: Plugins
In reply to: [wpMandrill] Wpmandrill – subbacountHi,
Exactly the same way you modify any other parameter:
public function addSubaccount($message) { $subaccount_id = getSubaccount(); $message['subaccount'] = $subaccount_id; return $message; } add_filter('mandrill_payload', 'addSubaccount');
Forum: Plugins
In reply to: [wpMandrill] Contact Form 7 Submit FailureGlad you make it work!
Forum: Plugins
In reply to: [wpMandrill] wp_mail has been declared by another process or pluginHm. Interesting.
That error is only triggered when another process declares wp_mail before wpMandrill tries to do that.
Assuming you are completely sure it is in fact your plugin the one that is triggering the error, and given that your plugin doesn’t do that directly, I’d say it does it indirectly. I mean, are you including another library or plugin that might be declaring wp_mail?
What I’d do is to break my custom plugin into tiny pieces and give them a try from its most simple form to its full version… and see what part of the code is the culprit.
Keep me posted!
Forum: Plugins
In reply to: [wpMandrill] Using Mandrill in other PluginsPHP mail() function returns false on error. wpMandrill::mail() returns WP_Error on error. You can’t just swap the functions.
Forum: Plugins
In reply to: [wpMandrill] Using Mandrill in other PluginsNo, you just need to have wpMandrill activated.
Where and when are you calling it?
There are some scenarios where the plugin might not be loaded. Be sure it is.
Forum: Plugins
In reply to: [wpMandrill] plugin URI points to nonexisting pageThanks. Will be fixed in the next release. In the meantime, you can check the right link out at:
https://connect.mailchimp.com/integrations/transactional-emails-from-wordpress
Of course I do!
??
Yes, that’s my name ??
You could add it to your theme’s functions.php file, yes, but my preferred method is to add it to a general purpose plugin specially created for the site though. It doesn’t need to do anything fancy.
If you’re using a child theme, then it’s a bit better… but still, I’d go for a basic utility plugin created for the site.
Forum: Plugins
In reply to: [wpMandrill] Mandrill Reports under the Dashboard admin menuSorry for the delay,
We’ve been unable to replicate the problem so we’ve released a new version that will add new log messages to your wp log file.
Please, list them here.