速度模板中的Html代码

时间:2013-08-03 09:52:18

标签: velocity

I want to use the below velocity template in the format of html code. I had wroteen the above template into the html template.But in mail it displays as it is.

 Welcome $firstName $lastName! 
Please use activation code to activate your my fashions account Activation Code:$activationCode Please click the below link to activate your my fashions account. URl: $activationLink 

<html> 
<body>
 <h2> Welcome $firstName $lastName! </h2> 
<br> <br>
 Please use activation code to activate your my fashions account 

激活码: $ activationCode       请点击以下链接激活我的时尚帐户。 谢谢你,

1 个答案:

答案 0 :(得分:0)

我不确定我是否完全理解了这个问题的概念,但试试这个:

`<html>`

`<body>`

    `<h2>Welcome ${first.userName}, ${last.lastname} </h2>`

`</html>`

我希望有帮助