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 请点击以下链接激活我的时尚帐户。 谢谢你,
答案 0 :(得分:0)
我不确定我是否完全理解了这个问题的概念,但试试这个:
`<html>`
`<body>`
`<h2>Welcome ${first.userName}, ${last.lastname} </h2>`
`</html>`
我希望有帮助