Super MailTo:

Mailtos are a convenient way to let your audience offer feedback on your Web site or to arrange other contact information. But you can do a lot more with a mailto than just automatically generate an email message. Super ninja mailtos can automatically CC: and BCC: people--or even fill in the subject line. Here's how to customize your mailto functions.

Your basic mailto looks like this:


<A href="mailto:person@domain.com">
Click here to send a boring old mailto message</a>.

When users click the link, it brings up their email client with the recipient's email address prepopulated in the To: field. Snore. To spice it up, follow these steps:

Step 1 
Create your regular mailto, with the main recipient's email address, as you normally would.

Step 2 
To copy (CC:) someone on the email, follow the To: recipient's email address with ?cc=. The example below shows how the code should look:


<A href="mailto:person@domain.com?cc=second_person@domain.com">
Click here to send an email message to multiple recipients</a>.

Step 3 
To blind copy (BCC:) someone on the email, follow the CC: recipient's email address with &bcc= (as you add these features, the first one begins with a ? and subsequent ones begin with a &). It should look something like this:


<A href="mailto:person@domain.com?cc=second_person@domain.com&bcc=third_person@domain.com">
Click here to send an email message to multiple recipients (only some of which you know about)</a>.

You can also separate numerous To:, CC:, and BCC: recipients by commas:


<A href="mailto:person@domain.com, second_person@domain.com">
Click here to send an email message to multiple comma-delimited recipients.</a>

Step 4 
To prepopulate the Subject: field, follow steps 1 and 2 with &subject=. The whole string--with To:, CC:, BCC:, and Subject:--should look like this:


<a href="mailto:person@domain.com?cc=second_person@domain.com&bcc=third_person@domain.com&subject=
This is only a test">Click here to send us super  email</a>.

 

Mailto hmtl super mailto mail web forms form post feedback bcc cc automatically send messages


Back To Top
© 1998 - 2017 psacake.com | My3C's

Version 7.2 | Advertise on this site