matt matt - 7 months ago 24
HTML Question

HTML: insert line-break in email subject like %20 is a space?

BreakHere…

I wonder if it is possible to write something like

%20
(which stands for a space) for a line-break as well. So I want to have seperate lines in my body of the e-mail.

Any ideas?

Answer

You should use a carriage return %0D and line feed %0A

<a href="mailto:endpointadress@something.com?cc=endpointadress2@something.com&subject=your subject&body=Text before new line.%0D%0AText after new line.">create email</a>

This is defined in RFC2368 and is the only valid method of generating a line-break.