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:[email protected]?subject=Yeah buddy!&[email protected]&[email protected]&body=I was wondering...">Send an e-mail to me</a> with any questions.

About the Author

Kevin Leary is a freelance developer in Boston, MA with a strong portfolio of work, and over 13 years of experience as a programming consultant and digital strategy provider. Interested in working together? Hire me for your next project.