Embedding Email Message Subject and Body Content into your “mailto:” Links
I’m sure you’re familiar with the properties of an average “mailto:” link. The code uses JavaScript to open your web site visitors’ mail client (eg. Outlook Express) with your email address prefilled in the message “To:” field and looks like this:
<a href="mailto:youraddress">Email Us</a>
Many web designers stop there. But did you know you can also use a mailto:” link to automatically add an email subject, cc, bcc, or message body to your site visitors’ emails? This technique can be especially helpful in organizing your incoming emails because you can specify the content of the subject line.
Here’s some sample code. Feel free to use any combination of the name=value pairs included to achieve your desired results.
<a href="mailto:youraddress?cc=youraddress2&bcc=youraddress3&subject=This is the subject&body=this is the body">Email Us</a>



Leave a Reply
You must be logged in to post a comment.