-
mailto
Hi,
When adding a mailto link to a page I need to have a to, subject and body fields with text in.
I have all three working with:
<a href="mailto:[email protected]?Subject=thisisatest&body=blah blah blah">email</a>
The thing is I need to apply a <br> type command to the body text as it all appears on one line and I need like two paragraphs...
Can anyone help pls?
TIA !
housey
-
I think you can use %0D%0A for new lines. Also when you have spaces in an e-mail make sure you replace them with %20 as some browsers don't like spaces.
-
thanx !
Thanx for your reply Rick but %0D%0A didn't work. I used:
<a href="mailto:[email protected]?Subject=thisisatest&body=blah blah blah %0D%0A blah blah">email</a>
I that correct?
Also do u know how to inlcude a 'from' field?
Thanks again !!
-
Oh sorry, I know I've got it to work before, and I was sure it was that. I'll try to figure it out. I don't think you can change the from field as that's determined by the user's e-mail client's settings, I could be wrong though.
-
0D 0A is the hexadecimal value for carrige return line feed
i tried it to make sure and it does work
are you sure you are using 0 (number) and not O (letter)?
bsw2112
-
I found him on another forum and he said it does work, just not on his computer (at least I think it's him, either that or someone's coping him :D ).
-
-
Thanks guys !
YES it was me on the other forum ! :D
It is working now.... shame about the 'from' field... i'll just have to do it in server script which is a bummer as I wanted to keep it all html/java...
THANKS !!!
Tim :cool: