[英]MailChimp template variables
So far my site has been using html files on my server. 到目前为止,我的网站一直在服务器上使用html文件。 Now I want to utilize Mailchimp and it's template.
现在,我想利用Mailchimp及其模板。
This is my html file where I dynamically replace the variables using String's replace in C#. 这是我的html文件,我在其中使用C#中的String替换来动态替换变量。
<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>
So <% Email %>
and <% Password %>
are dynamically populated. 因此,将动态填充
<% Email %>
和<% Password %>
。 How could I achieve the same in MailChimp template? 我如何在MailChimp模板中实现相同目的? I visited this page http://templates.mailchimp.com/getting-started/template-language/ but it is not clear how can I achieve this.
我访问了此页面http://templates.mailchimp.com/getting-started/template-language/,但尚不清楚如何实现此目的。
Sounds like you want merge tags 听起来像您想要合并标签
For example: instead of <% email %> use *|EMAIL|* 例如:使用* | EMAIL | *代替<%email%>
http://kb.mailchimp.com/merge-tags/all-the-merge-tags-cheat-sheet for a list of available merge tags. http://kb.mailchimp.com/merge-tags/all-the-merge-tags-cheat-sheet列出了可用的合并标记。 If you want to send out the password, you probably don't want to use mailchimp at all;
如果要发送密码,则可能根本不想使用mailchimp。 you probably want to use Mandrill (from the same company).
您可能要使用Mandrill (来自同一家公司)。 Also consider SendGrid;
还考虑SendGrid; or just google 'email api'
或只是谷歌的“电子邮件API”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.