MailTo Syntax Overview

On today’s websites it is good practice to utilize a contact form instead of a mailto link. However you will find the occasions when you find the need to add a contact reference that does not require a form. In this cases you will find that you may want to set a predefined subject or even some body text. Below is a quick overview of how you can set these elements of the email from the mailto link.

General Format

The mailto format is similar to a website url in that you define the recipients followed by query parameters containing additional properties. Below is a quick format example:

mailto:address1,address2?prop1=value1&prop2=value2

Properties

Recipients comma seperated list following mailto:
Copy To or CC Recipients cc=emailaddress
Blind Copy To or BCC Recipients bcc=emailaddress
Subject subject=text here
Body body=Email message

Comments & Questions

Add Your Comment