W3C home > Mailing lists > Public > www-html@w3.org > October 2000

Re: form emails

From: Frank Boumphrey <bckman@ix.netcom.com>
Date: Tue, 31 Oct 2000 05:08:29 -0500
Message-ID: <003d01c04322$8a8cb480$1db3343f@preferreduser>
To: "Catherine Sherman" <catherine_sherman@hotmail.com>, <www-html@w3.org>
You can use a query string for this, see

    http://www.ietf.org/rfc/rfc2368.txt

to,cc,subject, and body are the key words.

It is always better to encode spaces to %20 although most email clients will
do this for you.

'?', '&', and '=' are reserved and need to be encoded to their hexa-decimal
ascii number. eg & is %26. Note that the RFC suggests using html entities
such as &amp;, but all the email clients that I have tried it on do not
accept this so it is better to use the hexadecimal code.

Note the use of multiple to's and cc's

the form is
<a
href="mailto:fred@fred.com?to=frank@frank.com&to=pat@pat.com&cc=joe@joe.com&
cc=ken@kencom&subject=some%20subject&body=here%20is%20the%20body%20of%20the%
20email">mail me</a>


several other examples are given in the RFC.

HTH

Frank


----- Original Message -----
From: "Catherine Sherman" <catherine_sherman@hotmail.com>
To: <www-html@w3.org>
Sent: Wednesday, October 25, 2000 9:13 PM
Subject: form emails


> Hi folks,
>
> I'm putting together a simple email form in HTML.  I know how to get the
> subject line of the email to submit when you hit a send button, but I
don't
> know how to grab the body of the message and send it as well.
>
> Is there a way to send the message body directly to an email address in
> HTML?  That would be great, but somehow I think the answer is probably no.
> So, how about JavaScript?  My ultimate goal is to avoid having to run a
> script...
>
> Thanks!
>
> Katie
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
> Share information about yourself, create your own public profile at
> http://profiles.msn.com.
>
Received on Tuesday, 31 October 2000 04:41:34 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:44 GMT