Welcome to WebmasterWorld Guest from 54.205.89.199

Forum Moderators: incrediBILL

Message Too Old, No Replies

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)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 20, 2003
posts:1741
votes: 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

instead

First line Second line

Any clues?

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Dec 17, 2001
posts:1262
votes: 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 Sept 3, 2004 (gmt 0)

New User

10+ Year Member

joined:Aug 30, 2004
posts:4
votes: 0


try this nitfy little page :)

[developer.netscape.com...]

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

Full Member

10+ Year Member

joined:Feb 25, 2003
posts:323
votes: 0


VERY nifty :)
6:32 pm on Sept 7, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 20, 2003
posts:1741
votes: 0


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