Support » Plugins and Hacks » wpMandrill » Blank mail on using global_merge_tags in mandrill_payload

  • 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/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Marko Heijnen

    (@markoheijnen)


    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;

    Plugin Author MC_Will

    (@mc_will)


    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Blank mail on using global_merge_tags in mandrill_payload’ is closed to new replies.