MC_Will
Forum Replies Created
-
Forum: Plugins
In reply to: [wpMandrill] Different line feed settings for HTML and plain text emailsHi,
We just released a new version of this plugin. We added a new filter, mandrill_nl2br, that allows you to change that flag on the fly.
For example:
function forgotMyPasswordEmails($nl2br, $message) { if ( in_array( 'wp-retrieve_password', $message['tags']['automatic'] ) ) { $nl2br = true; } return $nl2br; } add_filter( 'mandrill_nl2br', 'forgotMyPasswordEmails' );
Let me know how it goes.
Adams,
We just released a new version of this plugin. We added a new filter, mandrill_nl2br, that allows you to change that flag on the fly.
For example:
function forgotMyPasswordEmails($nl2br, $message) { if ( in_array( 'wp-retrieve_password', $message['tags']['automatic'] ) ) { $nl2br = true; } return $nl2br; } add_filter( 'mandrill_nl2br', 'forgotMyPasswordEmails' );
Let me know how it goes.
Hi Adam,
Did you try to activate the switch “Replace all line feeds by
in the message body?”?Forum: Plugins
In reply to: [wpMandrill] Trouble adding tags on mandrill payload functionThis article might be helpful:
https://help.mandrill.com/entries/23317558-Why-are-my-emails-going-into-recipients-spam-folders-
Forum: Plugins
In reply to: [wpMandrill] Contact Form 7 Submit FailureHi,
First of all, make sure the message is being sent though Mandrill (check the headers of the email you’re receiving).
If it is actually being sent thought it, I’d say there’s something wrong with the way Contact Form 7 is handling the response… I doubt this is the case because CF7 is compatible with wpMandrill.
If it is being sent through your web server, take a look at your wp log file. There might be some hints of what’s happening.
Forum: Plugins
In reply to: [wpMandrill] Selecting track options within the plugin settings.We’ll be adding those settings soon…
Forum: Plugins
In reply to: [wpMandrill] Defining FROM Name and Reply to EmailYes, you can use the wpmandrill_payload filter to do that.
Forum: Plugins
In reply to: [wpMandrill] timeout and large quantities of mailNo, it will not. If you call it 800 times, it will be sending 800 requests to Mandrill.
You’ll need to send one request, with 800 email addresses in the TO: field of the payload. Check this thread out:
https://www.ads-software.com/support/topic/asynchronous-requests?replies=3Forum: Plugins
In reply to: [wpMandrill] timeout and large quantities of mailHi,
The message queue is managed in Mandrill, not in your servers so all you need to do is to send a valid payload with the 800 messages and Mandrill will take care of it for you.
This article might be helpful:
https://help.mandrill.com/entries/23584657-What-happens-if-I-go-over-the-hourly-quota-Forum: Plugins
In reply to: [wpMandrill] I really want WPMandrill to workHey ianarmstrong,
Glad you got it working… however, something is not quite right. It should not behave the way you mentioned. That’s probably telling you that you should still try to figure out what was really happening.
All the best,
WillForum: Plugins
In reply to: [wpMandrill] Asynchronous requests?Hi Janneke,
I still think the best option for you will be to send one message to multiple recipients, as you mentioned.
First of all, if a message is sent to more than 10 recipients, it is always sent asynchronously by Mandrill so just one call and boom, you’re done.
Next in order, unique content for every recipient. Here you have a few options too. If every email is completely different, you can create a very basic template and, using ‘merge vars’, insert the content you already have for every recipient. That will make the payload a little bit larger but it will work.
My preferred option is to identify common parts in all those emails, replacing unique parts by global or user merge vars (depending on the case) and create a template with this. Then, send the payload only with the unique values for each recipient along with any global merge vars if needed.
I hope it helps!
Forum: Plugins
In reply to: [wpMandrill] Trouble adding tags on mandrill payload functionHey,
I guess the best option will be to use the array_merge function.
function dpg_mandrill_tag($message){ $message['tags']['user'] = array_merge($message['tags']['user'], array("frankdougdog","arri-alexa")); return $message; }
Forum: Plugins
In reply to: [wpMandrill] Trouble adding tags on mandrill payload functionHi Evan,
$message[‘tags’] is an array of arrays of arrays. Its values are $message[‘tags’][‘user’], $message[‘tags’][‘general’], and $message[‘tags’][‘automatic’].
You’re not supposed to modify the automatic tags (but you could if that’s what you really want.)
General tags are the ones added in the plugin’s settings page.
And ‘user’ are tags usually added by the wpmandrill_payload filter.
That say, try something like
function dpg_mandrill_tag($message){ $message['tags']['user'][] = 'frankdougdog'; return $message; } add_filter('mandrill_payload', 'dpg_mandrill_tag');
Forum: Plugins
In reply to: [wpMandrill] Track Clicks BreakageGood point. Problem is that we can’t estimate which emails do you want to track and which emails you don’t want to.
Thus, Mandrill (and wpMandrill) is not a drop-in all-purpose solution so a certain level of customization should be expected. The fields we expose in the settings page are the very minimum required to make it work.
We’ll consider it in a future version though!
Forum: Plugins
In reply to: [wpMandrill] Track Clicks BreakageHey,
Actually, there is a way to do that.
Just override $message[‘track_clicks’]/$message[‘track_opens’] using the mandrill_payload filter.