, LLC.

Creating User Friendly Mailto  Links

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.

Meet the Author

Kevin Leary, WordPress Consultant

I'm a freelance web developer and WordPress consultant in Boston, MA with 16 years of experience building websites and applications. View a portfolio of my work or request an estimate for your next project.