Welcome to WebmasterWorld Guest from 107.20.5.156

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?

     

silverbytes

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

WebmasterWorld Senior Member 10+ Year Member



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?

choster

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

WebmasterWorld Senior Member 10+ Year Member



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.

Jeroentje

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

10+ Year Member



try this nitfy little page :)

[developer.netscape.com...]

mifi601

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

10+ Year Member



VERY nifty :)

silverbytes

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

WebmasterWorld Senior Member 10+ Year Member



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

Featured Threads

Hot Threads This Week

Hot Threads This Month