HighDots Forums  

Re: javascript email

Javascript JavaScript language (comp.lang.javascript)


Discuss Re: javascript email in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Bart Van der Donck
 
Posts: n/a

Default Re: javascript email - 01-29-2008 , 04:27 AM






Junior wrote:

Quote:
a href="mailto:asta... (AT) unl (DOT) 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:

Quote:
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. (AT) unl (DOT) edu?body=The message's first
paragraph.%0D%0A%0D%0ASecond paragraph.%0D%0A%0D%0AThird
Paragraph.">

Hope this helps,

--
Bart


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.