blindog . . . Click here to back to the homepage . . .

HTML Basics: The E-mail Link - More

More tricks for the email link

In the last section, we saw how to add the subject to a message through the e-mail link. It was done using a "question mark" followed by subject= and then the subject:

<A HREF="mailto:you@you.com?subject=Hi">Mail Me</A>
    

On top of adding the subject, there are a couple of extras you can also add. You can add a carbon copy recipient, a blind carbon copy recipient, or use a combination of the subject with either or both of these.

To send a carbon copy, you add the cc= command after the question mark, followed by the e-mail address of the person you want to send the carbon copy to:

<A HREF="mailto:you@you.com?cc=friend@friend.com">
Mail Me</A>
    

The same goes for a blind carbon copy, except you use the bcc= command instead:

<A HREF="mailto:you@you.com?BCC=friend@friend.com">
Mail Me</A>
    

With either of these, you can send the copies to multiple addresses by separating them with commas:

<A HREF="mailto:you@you.com?BCC=friend@friend.com, other@other.com">
Mail Me</A>
    

Now, if you want to combine more than one of these commands after the question mark, you add them in using an "&" sign at the end of the first command. For instance, if you want a subject and a blind carbon copy, it would look like this:

<A HREF="mailto:you@you.com?subject=Hi&BCC=friend@friend.com">
Mail Me</A>
    

If you want all three, use the "&" sign again:

<A HREF="mailto:you@you.com?subject=Hi&BCC=friend@friend.com&cc=other@other.com">
Mail Me</A>
    

With that, you can have some more fun with your e-mail links-- and if you run a site with a partner you can both get an e-mail when someone uses that link.


<< Back >> Home << >> Next

 

- Home - Portfolio - Resume - About - Clients - Contact - Jessica - Site Map -