Mailto Link Generator
Build mailto: links with custom subject, body, CC, and BCC. Copy the HTML instantly.
Email Details
Mailto URL
HTML Code
How Mailto Links Work
A mailto: link is a special URL scheme that opens the user's default email client with pre-filled fields. When someone clicks the link, their email app opens a new compose window with the recipient, subject, body, and other fields already filled in.
Mailto URL Syntax
The basic format is mailto:email@example.com?subject=Hello&body=Hi%20there. Parameters are separated by & and values must be URL-encoded.
Supported Parameters
- subject — Pre-fills the email subject line
- body — Pre-fills the email body text
- cc — Adds carbon copy recipients
- bcc — Adds blind carbon copy recipients
When to Use Mailto Links
Mailto links are useful for simple contact buttons on static websites. However, they require the visitor to have an email client configured and expose your email address to spam bots. For a more robust solution, consider using a contact form with a backend like Static Forms.
Want a proper contact form instead?
Static Forms lets you add a real contact form to your site without any server-side code.