Mailto


mailto is a Uniform Resource Identifier scheme for email addresses. It is used to produce hyperlinks on websites that allow users to send an email to a specific address directly from an HTML document, without having to copy it and entering it into an email client.
It was originally defined in Request for Comments 2368, published in July 1998, and refined in RFC 6068, published in October 2010.

Examples

"mailto" can be used within an HTML document to generate a link for sending email:
Send email
Clicking on the hyperlink automatically opens the default email client, with the destination email address pre-filled.
It is possible to specify initial values for headers and message body in the URL. Blanks, carriage returns, and linefeeds cannot be embedded but must be percent-encoded:
Send email
Multiple addresses can be specified:
Send email
The address can be omitted:
Share this knowledge...

Security and privacy

A number of security issues are mentioned in RFC2368, however the greatest concern is robotic address harvesting. Mailto constructs are locatable within HTML pages by automated means which typically include the use of DOM constructs or regular expressions. Addresses harvested by such means are liable to be added to spammers' mass-mailing lists and thus to receive large amounts of unwanted mail.
While methods exist to "harden" mailto links against harvesting—address munging and JavaScript-based address obfuscation among them—these protections can be circumvented by sufficiently sophisticated harvesting robots. Other techniques, like walling the address behind a CAPTCHA or similar "humanity check", provide security on par with that available for other contact methods, most notably web forms, which experience similar challenges with preventing spam.