I want each form element on a seperate line I tried \n but it does work.
Thanx
Example:
window.open('mailto:mp...@afrigis.co.za?body=line1%0Aline2%0Aline3');
You can also use:
var strBody = 'line1\nline2\nline3';
window.open('mailto:mp...@afrigis.co.za?body=' + escape(strBody));
Xlnt
"Xlnt" <xlnt[remove]@myrealbox.com> wrote in message
news:TqVn8.97304$58.44...@zwoll1.home.nl...
Note that (supposedly) the standard for the mailto protocol specifies that
it is for small messages only, but I got that second-hand, I did not read
it. I was told that because I did encounter a problem when I tried to create
a body with more text in it than was supported. The actual maximum size is
implementation-dependent but for Outlook Expess it is less than 200
characters. Of course it might be the entire address string rather than just
the body that is limited in size. Someone referenced a Microsoft article
acknowlidging that there is a limit and (at the time) no documentation of
the maximum size.
"Mpho Molahloe" <mp...@afrigis.co.za> wrote in message
news:eFuS8UK1BHA.2692@tkmsftngp05...
Actually, Outlook Express supports mailto URLs up to 2028 characters
(subject, address, body all included). When you hit 2029, you get an error
message that the mail client is not properly configured.
http://www.codeguru.com/cgi-bin/bbs/wt/showpost.pl?Board=vc&Number=334994
http://www.codeguru.com/cgi-bin/bbs/wt/showpost.pl?Board=vc&Number=227965
"Aaron Bertrand [MVP]" <aaronATaspfaq.com> wrote in message
news:OxhMTnb1BHA.1624@tkmsftngp03...
<script>
location.href='mailto:a...@a.com?subject=hi&body=1234567890...upto2028character
s_including mailto:etc';
</script>
"Samuel" <sam...@socal.rr.com> wrote in message
news:epk1$sg1BHA.2848@tkmsftngp05...
Since the size limitation is not documented it is risky to assume that it is
always possible to get more than 2000 characters in the body. I did try
script such as yours and I am also able to create a message with text in the
body up to 2000 characters but we are both using OE 6. I had a problem when
I was still using IE 5.5, so perhaps this is something that was improved by
IE/OE 6.
"MVP - Aaron Bertrand" <aaronATaspfaq.com> wrote in message
news:eh46Vyg1BHA.956@tkmsftngp03...
Kalis
>.
>