![]() |
|||||||||||||||||
|
In its simplest form, the mailto URL looks like this: mailto:name@company.com The corresponding HTML anchor tag is as shown in this example: <A HREF="mailto:name@company.com">send email</A> Clicking the link send email pops up a mail window with name@company.com on the To line. (Note: This works in every browser I tested it in, but be warned that not all browsers recognize mailto URLs.) If you want to specify values for additional properties, such as cc, bcc, and subject, you can add them to the URL as name/value pairs (name=value). Each property name is followed by an equals sign (=) and then the value to appear for that property. The first name/value pair starts with a question mark (?) to separate it from the email address, and subsequent name/value pairs are separated by an ampersand (&). For example, here's a mailto URL with cc and subject values specified (with the separator characters highlighted for readability): mailto:erickrock@netscape.com?cc=bob@acme.com&subject=The Readme File The HTML anchor tag looks like this (with hex-encoded text for the value of the subject property):
<A
HREF="mailto:erickrock@netscape.com?cc=bob@acme.com&subject=The%20Readme%20File"> Clicking send email to Eric pops up a mail window with the To, Cc, and Subject lines already filled out. © 2003 Ashley Preston |
||||||||||||||||
![]() |
|||||||||||||||||