Powered by Blogger.

Social Icons

Featured Posts

mailto command

Sunday, February 25, 2007

The mailto Command is used to write email link in the web page.

A typical email link will be like any anchor link but mailto is used instead of href.
href="mailto:abc@xyz.com"

If you want to send to more than one person then separate the email addresses with a comma.
mailto:abc@xyz.com,info@abc.com,xyz@mymail.net

To send a carbon copy (cc), mailto link will be
mailto:abc@xyz.com?cc=info@abc.com

To send a blind carbon copy (bcc), mailto link will be
mailto:abc@xyz.com?cc=info@abc.com&bcc=xyz.mymail.net

We can also specify subject & body information.
Subject - mailto:abc@xyz.com?subject=hello
Email text - mailto:abc@xyz.com?subject=hello&body=email text

If you want to add multiple elements (cc, bcc, subject, body), separate the second and subsequent elements with an ampersand (&).
 

Translate

Popular Posts