2016-05-23 112 views
0

到目前爲止,我的網站一直在我的服務器上使用html文件。現在我想利用Mailchimp和它的模板。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/,但不清楚我該如何實現這一目標。

回答

2

聽起來好像要合併標籤

例如:代替<%郵件%>使用* | EMAIL | *

http://kb.mailchimp.com/merge-tags/all-the-merge-tags-cheat-sheet可用合併標籤列表。如果你想發送密碼,你可能根本不想使用mailchimp;你可能想使用Mandrill(來自同一家公司)。還要考慮SendGrid;或只是谷歌'電子郵件API'

+1

同意,但我會更進一步:如果你可以產生一個人的密碼發回給他們,你做的事情非常非常錯誤。 [你永遠不應該存儲明文密碼](http://security.blogoverflow.com/2011/11/why-passwords-should-be-hashed/)。 – TooMuchPete