[resolved] Using Template in wpMandrill (6 posts)

  1. therandomguy12345
    Posted 3 years ago #

    When I use a template in wpMandrill, what tells Mandrill to replace that text with the message from WordPress?

    Is there a certain word phrase that I need to use?

    For example, http://wpmu.org/pretty-and-responsive-wordpress-emails/#comment-143871
    If you use Premium WPMU Dev's HTML Email Plugin, the placeholder "MESSAGE" will be replaced by the message that WordPress is sending to the recipient.

    For Mandrill, what do I use?


  2. MC_Will
    Plugin Author

    Posted 3 years ago #

    All you need is a HTML container with an editable region called 'main':

    <div mc:edit="main"></div>

    This thread might help you understand Mandrill templates and Merge Vars and how to use them in wpMandrill:

    Also, this KB article has interesting information on editable regions:

  3. therandomguy12345
    Posted 3 years ago #

    Do I need the "div tags" or can I just have mc:edit="main" anywhere?

  4. therandomguy12345
    Posted 3 years ago #

    Nevermind, I got it!

  5. mcserban
    Posted 2 years ago #

    I don't know how to add content to a template, for user registration email. Can you please tell me what tag to add?

    I try <div mc:edit="main"></div> but no result.

    If a don't select any template, the email is sent ok, with the right text content.
    But if I select a template, no custom text is added to the message.

  6. MC_Will
    Plugin Author

    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • wpMandrill
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic