WordPress.org

Ready to get started?Download WordPress

Forums

wpMandrill
Blank mail on using global_merge_tags in mandrill_payload (3 posts)

  1. milanvanbruggen
    Member
    Posted 1 year 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/

  2. Marko Heijnen
    Member
    Posted 1 year ago #

    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;

  3. MC_Will
    Member
    Plugin Author

    Posted 1 year 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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic