WordPress.org

Ready to get started?Download WordPress

Forums

wpMandrill
[resolved] Using Template in wpMandrill (6 posts)

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

    http://wordpress.org/extend/plugins/wpmandrill/

  2. MC_Will
    Member
    Plugin Author

    Posted 1 year 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:
    http://wordpress.org/support/topic/understanding-wpmandrillmail?replies=6#post-4244274

    Also, this KB article has interesting information on editable regions:
    http://help.mandrill.com/entries/21694286-How-do-I-add-dynamic-content-using-editable-regions-in-my-template-

  3. therandomguy12345
    Member
    Posted 1 year ago #

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

  4. therandomguy12345
    Member
    Posted 1 year ago #

    Nevermind, I got it!

  5. mcserban
    Member
    Posted 1 year 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
    Member
    Plugin Author

    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic