With spam ever on the rise, I’ve seen fewer and fewer “oldskool” HTML mailto links. But if you’re still fond of <a href=”mailto:email@address.com”>, here’s some sample code:
A plain mailto link
<a href="mailto:email@address.com">link text here</a>
A mailto link with a default subject
<a href="mailto:email@address.com?subject=subject here">link text here</a>
A mailto link with a default body
<a href="mailto:email@address.com?body=body here">link text here</a>
A mailto link with a default subject and body (ooh!)
<a href="mailto:email@address.com?subject=subject here&body=body here">link text here</a>
