2013-08-03 4 views
0
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 Пожалуйста, нажмите на ссылку ниже, чтобы активировать свой аккаунт мои моды. Спасибо,
HTML код в шаблоне скорости

ответ

0

Я не уверен, если я полностью получил концепцию вопроса, но попробуйте это:

`<html>` 

`<body>` 

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

`</html>` 

Я надеюсь, что помогает

+0

Смотрите эту ссылку на 22.3.2.1 HTTP : //static.springsource.org/spring/docs/2.0.8/reference/mail.html –

Смежные вопросы