Tuesday, July 1, 2008

Mailto links

<a href="mailto:someone@gmail.com,noone@yahoo.com?subject=Test%20;Message&amp;cc=anyone@gmail.com">Mail me!</a>
The above code snippet will open a blank email in the default email program with the appropriate fields filled (subject, cc etc). Make sure the ampersands and spaces are encoded (with &amp; and %20;), or else the page won't validate.

No comments: