SiteForce HomepageWeb Design and Hosting PackagesWeb Design TemplatesWeb Design PortfolioContact SiteForce

Embedding Email Message Subject and Body Content into your “mailto:” Links

Posted by Erik M. Cunningham - October 9, 2006

Erik M. Cunningham

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>

9 October 2006 | Web Design, JavaScript Tutorials, Beginner JavaScript | Comments

Leave a Reply

You must be logged in to post a comment.

Navigation

Archives

Meta

October 2006
S M T W T F S
« Sep   Nov »
1234567
891011121314
15161718192021
22232425262728
293031  


Add to My Yahoo!

Add to Google

Add to Windows Live

Subscribe in NewsGator Online

Add to Netvibes

Subscribe with Bloglines

Add to My MSN

Add to My AOL


Top Web Design Blogs

Blogroll