cancel
Showing results for 
Search instead for 
Did you mean: 

Mail from Web Template : body text

Former Member
0 Kudos

Hello,

i created a button in my web template so that users can send a mail to confirm they have checked this months data. Nothing to fancy about it (not getting dynamicaly the variable values just some fixed text).

This is the code i used:

      
<FORM action="mailto:xxx@abc.com
     ?subject=I have checked and approve the data for this month
      &body=Best regards" 
      method=post encType=text/plain>
<INPUT type=submit value="I have checked and approve the data for this month"> 
</FORM>

This works fine.

Now my question : i want to have multiple lines in my body and i can't get thjis working (logic since i don't know much of HTML ). Anybody any suggestions?

Thanks in advance for your help!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Tom,

One small change whatever you are writing in

Value="....."

This Text will come on Button.

So as explained earlier if you want more text on button you can do that.

If you want more text in body than I think simply you can use

<FORM action="mailto:xxx@abc.com ?subject=I have checked and approve the data for this month &body=Best regards \n Tom"

i.e. use "\n".

Hope this helps.

Regards,

Ashish

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Tom,

You can break value to string and pass it.

String message = "I have checked and approve the data for this month
n ""this line will be second line
n"
"from here it is third line and sn on";

Value = <%=message%>

Hope this helps.Please reward the effort by assigning points.

Regards,

Ashish