Interactive Mailto Link Generator
Create HTML mailto email links with custom recipient, CC, BCC, Subject, and pre-formatted Body templates instantly.
Generated Code Snippets
URL Encoding in Mailto Link:
Mailto URL parameters require strict percent encoding to safely transmit spacing, question marks, commas, and linebreaks (encoded as %0A) directly into desktop mail applications (such as Outlook, Apple Mail) or webmail engines (Gmail, Yahoo).
How to Code Mailto Links in HTML
An HTML mailto link is a specialized anchor tag that allows web visitors to send an email directly by tapping a link. Instead of linking to another webpage, the href attribute specifies a mailto: URI scheme, forcing the operating system to open the default system email client instantly.
Structure of a Complex Mailto URL
A basic email link looks like this: <a href="mailto:[email protected]">Contact Us</a>. To add parameters like Subject, CC, BCC, or Body, we use URL query parameters:
- Use
cc=emailaddressto copy additional recipients. - Use
bcc=emailaddressto blind copy recipients secretly. - Use
subject=Textto pre-fill the email's subject line header. - Use
body=Textto structure a standard email message draft.
?), and subsequent fields must be chained with an ampersand (&).
Encoding Line Breaks in Email Body
You cannot use standard line breaks in your HTML code block inside a mailto URI. Spacing and returns must be written as %20 (for space) and %0A or %0D%0A (for line feeds). This generator automatically executes all required escaping algorithms on the fly as you write.