By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,483 Members | 3,261 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,483 IT Pros & Developers. It's quick & easy.

javascript email

P: n/a
Using this syntax:
MailTo with multiline message in Body

<a href="mailto:as*****@unl.edu?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
Jan 29 '08 #1
Share this Question
Share on Google+
2 Replies


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

<a href="mailto:as*****@unl.edu?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?

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jan 29 '08 #2

P: n/a
Junior wrote:
<a href="mailto:asta...@unl.edu?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:asta.@unl.edu?body=The message's first
paragraph.%0D%0A%0D%0ASecond paragraph.%0D%0A%0D%0AThird
Paragraph.">

Hope this helps,

--
Bart
Jan 29 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.