473,322 Members | 1,510 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

javascript email

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
2 1955
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.