homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

Href mailto: inserting carriage return in body possible?
Set some words in body ok. But separating lines of that body?

 3:46 pm on Sep 3, 2004 (gmt 0)

Setting some text lines in body's email link is no problem

href="mailto:whoever@whereever.com?subject=Typemysubjecthere?&body=Body of email document">Send email</a>

But the text has no paragraph. I need to put some 5 lines of text but I need an "enter" or retrun of carriage at the end of each phrase... is it possible to format those using mailto?

I want my text like this:

First line
Second line


First line Second line

Any clues?



 4:19 pm on Sep 3, 2004 (gmt 0)

Try adding the escaped hex character for a carriage return physically, i.e. %0d.

<a href="mailto:whoever@whereever.com?body=Body%20of%0Demail">send email</a>

There is no way to guarantee the mail client will understand the value (and in fact, I don't believe mailto: is an official protocol), but it did work for me in Outlook and Eudora.


 7:27 pm on Sep 3, 2004 (gmt 0)

try this nitfy little page :)



 8:12 pm on Sep 3, 2004 (gmt 0)

VERY nifty :)


 6:32 pm on Sep 7, 2004 (gmt 0)

Cool page.
The escape works too. Thanks you all!

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved