mytilig
asked on
html mailto question - how can I format the email body?
I have a mailto: link on my jsp page where I want to automatically populate the email subject and body.
mailto:<user Name>?subject=sub&body=<%= template %>
The mailto DOES open my email client and populate the subject and body.
However, the text in the body is not formatted.
Even though I use "\n" in my text, the line breaks do not happen.
Please let me know how I can do text formatting. Also is it possible to do bold or underline?
thank you.
mailto:<user Name>?subject=sub&body=<%=
The mailto DOES open my email client and populate the subject and body.
However, the text in the body is not formatted.
Even though I use "\n" in my text, the line breaks do not happen.
Please let me know how I can do text formatting. Also is it possible to do bold or underline?
thank you.
ASKER
It is simply ignoring the \n characters. all the text appear together.
html tags like <br> does not work.
html tags like <br> does not work.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
What is displayed instead of the new line?
Maybe try specifying the text as HTML:
<HTML>.... mail contents ....</HTML>
Try using <BR> for line breaks, <BOLD> etc for bold fonts. But I am not sure if this will work.