Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A HREF="mailto:.... " + Subject line

Status
Not open for further replies.

misercord

Technical User
Feb 11, 2002
32
US
Is there a way in the statment:
<A HREF=&quot;Mailto:sysadmin@blah.com&quot;>...</A>
to fill in the subject line of the email?

So that the email gets filled out with
TO:sysadmin@blah.com
Sub:eek:peration page request
...

Thanks,
 
it's rather simple:

<a href=&quot;mailto:sysadmin@blah.com?subject=Hello%20from%20here!&quot;>

If the subject line consists of several words, they should be separated by
Code:
%20
that represents whitespace.


You may also add some text to the body of message:

<a href=&quot;mailto:sysadmin@blah.com?subject=Hello%20from%20here&body=hey%20you!&quot;>


good luck
 
I didn't have any problem with white space when used as a
form attribute
The code looks like :

<FORM NAME=&quot;GetInfo&quot; METHOD=&quot;POST&quot; ACTION=&quot;mailto:shaunk@iprimus.com.au&quot;
?subject=&quot;GetInfo Request Form&quot;
ENCTYPE=text/plain >

The ENCTYPE=text/plain is very neat. It formats the
email nicely according to the Names and values used in the form, not just gobblygook.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top