A mailto link is great fallback for situations where a contact form isn’t practical. Depending on the how you are using a mailto link, it’s can be a nice experience to add a default subject and body to the email client when a user clicks the link. Luckily, this is easier to do than you think.

You can customize the mailto email template that opens in a user’s email client using the following URL parameters:

  • cc — Add a CC
  • bbc — Add a blind CC
  • subject — The subject of the email
  • body — The body of the email

This is really useful for making those mailto links a little bit more user friendly. For example:

<a href="mailto:info@kevinleary.net?subject=Yeah buddy!&cc=foo@kevinleary.net&bbc=bar@kevinleary.net&body=I was wondering...">Send an e-mail to me</a> with any questions.