Altaf Khatri
Find me on web
► Orkut
Anchor tag syntax for send email (mailto) with autopopulated CC, subject and body
Sometimes we want to compose an email on click of a hyperlink. We may know the subject and the body of the email as well. The example below demonstrates this function
On click of the hyperlink an email is composed with the prepopulated values:
To: altafkhatri@hotmail.com
CC: altaf_khatri@hotmail.com
Subject: Sending Test Email
Message: Test Message
The code for this is as follows:
<a
href='mailto:altafkhatri@hotmail.com.com?CC=altaf_khatri@hotmail.com&Subject=Sending%20Test%20Email%20&Body=Test%20Message%20'>Mail Altaf Khatri</a>
