A mailto link opens the visitor's email app with a new message already addressed to you. This free mailto link generator goes further, filling in the subject line, CC and BCC addresses, and even the first lines of the message, so every email you receive arrives labeled and easy to sort. Fill in the fields above and copy the finished link or HTML code. Everything updates as you type.
How to Use a Mailto Link
- Enter the address the email should go to. Add CC or BCC addresses if someone else should get a copy.
- Add a subject such as "Quote request" so you can filter these emails into their own folder.
- Add body text if you want to prompt visitors, for example "My order number is:".
- Copy the HTML code and paste it into your website wherever the link should appear, or copy the plain link to use in a button, PDF, QR code, or email signature.
- Click "Test the Link" to check it opens your email app with everything filled in.
How Mailto Links Work
A mailto link is a normal web link that starts with mailto: instead of https://. Extra details are added after a question mark, joined with &:
mailto:hello@example.com?cc=team@example.com&subject=Quote%20request&body=Hi%20there
Spaces, line breaks, and symbols must be encoded, so a space becomes %20 and a new line becomes %0D%0A. That encoding is the fiddly part, and it is exactly what this generator handles for you. Get it wrong and the subject cuts off early or the link breaks completely.
Smart Ways to Use Mailto Links
- Contact pages: a pre-filled subject like "Website enquiry" separates customer email from everything else.
- Newsletter sign-ups: before you have a sign-up form, a "Join the list" link with the subject "Subscribe" is a simple start. Our guide to building an email list from scratch explains what to do next.
- Support and orders: put "Order number:" in the body so customers include it without being asked.
- Unsubscribe requests: some senders add a mailto unsubscribe link with the subject "Unsubscribe" already filled in.
- Printed materials: turn the link into a QR code so people can scan it and email you instantly.
Mailto Links and Spam Bots
A plain mailto link shows your address in the page's code, where spam bots can collect it. If you are worried about spam, run the address through our email obfuscator to disguise it, or use a separate address for your website. Our guide on how to stop spam emails has more tips.
The One Downside of Mailto Links
A mailto link only works if the visitor has an email app set up on their device. People who use Gmail in a browser on a shared computer may see nothing happen, or be asked to choose an app. Always show your email address as text near the link, or offer a contact form as well.
Frequently Asked Questions
How do I add a subject line to a mailto link?
Add ?subject= after the address, followed by your subject with spaces encoded as %20, for example mailto:hello@example.com?subject=Quote%20request. The generator above does the encoding for you.
Can a mailto link include line breaks in the body?
Yes. Line breaks are written as %0D%0A in the link. Type your body text on separate lines in the generator and it will encode them correctly.
Can I send to more than one address?
Yes. Separate the addresses with commas in the To, CC, or BCC fields. Most email apps support several addresses in a mailto link.
Why does my mailto link do nothing when clicked?
The visitor's device has no default email app set up, which is common on shared or work computers. Showing the address as text next to the link gives them another way to reach you.
Can I add an attachment to a mailto link?
No. Mailto links cannot attach files, for security reasons. You can only pre-fill the address, CC, BCC, subject, and body.