Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

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