milanvanbruggen
Member
Posted 5 months ago #
Hi there,
I'm trying to get wpMandrill working with my site.
I want to use a Mailchimp template to send a mail with dynamic content. I've tries this by using mandrill_payload in combination with global_merge_vars and the *|MERGEVAR|* tags, but can't figure it out. Can you give me a hint in the right direction?
Kind regards,
Milan
http://wordpress.org/extend/plugins/wpmandrill/
Well, this bug is just weird. The vars are now fixed but selecting the template is just weird. I would expect that filling in the template name/slug is just enough but you do have to fill in the content $template_content. That doesn't make sense to me. See:
$template_content = array( array('name' => 'main', 'content' => $message['html']) );
$message['html'] = '';
$message['template']['name'] = 'just-a-template';
$message['template']['content'] = $template_content;
MC_Will
Member
Plugin Author
Posted 4 months ago #
Hey,
This API call is a mirror of the Mandrill send-template call:
https://mandrillapp.com/api/docs/messages.html#method=send-template
If you were using more than one "editable zone" within your template, it would make more sense.