MailChimp 模板变量

MailChimp template variables

到目前为止,我的网站一直在我的服务器上使用 html 个文件。现在我想利用 Mailchimp 及其模板。

这是我的 html 文件,我在其中使用 C# 中的字符串替换动态替换变量。

 <h1>
        <img src="http://john.doe/test.png" border="0" /></h1>
    <hr />
    <div style="padding-left: 30px;">
        <p>
            You have joined John Doe, where you can sell art direct to the public.</p>
        <h2>Username and password</h2>
        <p>
            Here's a reminder of your username and password.</p>
        <p>
            Username:
            <% Email %>
            <br />Password: 
            <% Password %>
        </p>
        <p>
            To log in simply go to
            <a href="">John Doe</a></p>
        <h2>Thanks for joining!</h2>
    </div>

所以 <% Email %><% Password %> 是动态填充的。我怎样才能在 MailChimp 模板中实现相同的目标?我访问了此页面 http://templates.mailchimp.com/getting-started/template-language/,但不清楚如何实现。

听起来你想要合并标签

例如:使用 *|EMAIL|*

而不是 <% email %>

http://kb.mailchimp.com/merge-tags/all-the-merge-tags-cheat-sheet for a list of available merge tags. If you want to send out the password, you probably don't want to use mailchimp at all; you probably want to use Mandrill(来自同一家公司)。还要考虑 SendGrid;或者只是 google 'email api'