Expand my Community achievements bar.

Formatting text in an e-mail

Avatar

Level 2

I have a text string that I named as a variable called "message" that is included in an e-mail when the user clicks the submit button on my form... I'm trying to see if there's a way to format the string/variable so that the text in the e-mail is bolded, with a larger font size than the default..

I tried message.fontsize().bold() , but all that does is add the HTML tags to the text, instead of actually converting the text per the instruction.

What can I do here?

1 Reply

Avatar

Level 10

Hi,

the mailTo URL scheme does only allow plain text in the body, so you cannot create a html-formatted mail.

http://tools.ietf.org/html/rfc2368