javascript email

J

Junior

Using this syntax:
MailTo with multiline message in Body

<a href="mailto:[email protected]?body=The message's first
paragraph.%0A%0aSecond paragraph.%0A%0AThird Paragraph.">

Works fine, except cursor sets at end of "To:" addressee and not in body of
email. If you start typing you are not in the body of the email but in the
addressee line and it gets messed up. Anyway to have cursor set in body of
email?

Thanks for any help.

Junior
 
E

Evertjan.

Junior wrote on 29 jan 2008 in comp.lang.javascript:
Using this syntax:
MailTo with multiline message in Body

<a href="mailto:[email protected]?body=The message's first
paragraph.%0A%0aSecond paragraph.%0A%0AThird Paragraph.">

Works fine, except cursor sets at end of "To:" addressee and not in
body of email. If you start typing you are not in the body of the
email but in the addressee line and it gets messed up. Anyway to have
cursor set in body of email?

Wrong NG.

This has nothing to do with Javascript.

It depends on the email programme you use.
Anyway to have cursor set in body of email?

Anyway? Any way?
 
B

Bart Van der Donck

Junior said:
<a href="mailto:[email protected]?body=The message's first
paragraph.%0A%0aSecond paragraph.%0A%0AThird Paragraph.">

Works fine, except cursor sets at end of "To:" addressee and not in body of
email. If you start typing you are not in the body of the email but in the
addressee line and it gets messed up. Anyway to have cursor set in body of
email?

It is a setting of the email client of the machine - I don't believe
it's possible to modify it.

But there is another problem with your code.

http://rfc.net/rfc2368.html (RFC2368) says:

| note that line breaks in the body of
| a message MUST be encoded with "%0D%0A".

where MUST means [Cit. RFC2119] "an absolute requirement".

So:

<a href="mailto:[email protected]?body=The message's first
paragraph.%0D%0A%0D%0ASecond paragraph.%0D%0A%0D%0AThird
Paragraph.">

Hope this helps,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,177
Latest member
OrderGlucea
Top