What an email link does and when to use one
An email link is a piece of text or a button on a webpage or document that opens your reader's email program when they click it. Instead of typing an address into their inbox, they click the link and their email client (Gmail, Outlook, Apple Mail, or whatever they use) opens with a new message already addressed to you.
Email links are useful when you want someone to contact you but don't want to publish your address as plain text on a page where spam bots can find it. They're also faster than asking someone to copy and paste an address manually. You'll see them on business websites, in online forms, and in documents where contact information needs to be clickable.
The link itself looks like regular text or a button, but the code underneath tells the browser to open an email program instead of loading a new webpage.
Key Takeaways
- An email link uses the mailto: code followed by an email address, wrapped in HTML that makes it clickable.
- The basic format is <a href="mailto:youraddress@example.com">Click here to email</a>, where the text between the second set of tags is what readers see.
- You can add a subject line that appears automatically when the email opens by adding ?subject=Your Subject Here after the address.
- Email links work in web pages, documents, and emails themselves, but the reader's computer must have an email program installed to use them.
- If you're building a website or document and don't know HTML, most website builders and word processors have a "Insert Link" button that creates the code for you.
The basic HTML structure for an email link
The simplest email link uses the mailto: command inside an HTML anchor tag. Here's the exact format:
<a href="mailto:contact@example.com">Send me an email</a>
Break this down: the <a> tag creates a link. The href="mailto:" part tells the browser this is an email link, not a regular webpage link. You replace contact@example.com with your actual email address. The text between <a> and </a> — in this case "Send me an email" — is what your reader sees on the page. When they click it, their email program opens with a blank message addressed to you.
You can change the visible text to anything you want: "Contact us", "Get in touch", "Email the manager", or just an email address itself. The visible text and the actual email address don't have to match.
Adding a subject line to the email
You can make the email link even more useful by adding a subject line that appears automatically when the email opens. This helps your reader know what to write about and helps you sort incoming messages.
Add the subject by putting a question mark after the email address, then the word subject=, then your subject text:
<a href="mailto:contact@example.com?subject=Website Inquiry">Contact us</a>
When someone clicks this link, their email program opens with "Website Inquiry" already filled in as the subject line. If your subject has multiple words, replace the spaces with %20 so the code reads correctly: subject=Website%20Inquiry%20Form.
Creating email links without writing HTML code
If you're building a website using a platform like Wix, Squarespace, WordPress, or Weebly, you don't need to type HTML yourself. These builders have a button labeled "Insert Link" or "Add Link" in the text editor. You click it, choose "Email" from the menu, type your address, and the platform generates the code for you.
In Microsoft Word, Google Docs, or Apple Pages, highlight the text you want to turn into a link, then right-click and choose "Link" or "Insert Link". A dialog box opens where you type mailto:youraddress@example.com in the URL field. The program handles the HTML behind the scenes.
If you're writing an email and want to include an email link in the message itself, most email programs don't support this — the link would just be text. But if you're creating an HTML email (which some email marketing platforms do), the same mailto: format works.
What happens when someone clicks an email link
When a reader clicks an email link, their computer looks for an email program that's set as the default. On Windows, this is usually Outlook or Windows Mail. On a Mac, it's usually Apple Mail. On a phone, it's the default email app. The program opens with a new message window, the "To" field already filled with your address, and any subject line you included already typed in.
The reader can then type their message and send it normally. If they don't have an email program installed or configured, clicking the link may do nothing, or their browser may show an error. This is rare on desktop computers but more common on phones or tablets where email isn't always set up.
Some readers may have multiple email accounts. When they click the link, they may see a prompt asking which account to send from. This is normal and expected — they choose the account they want to use.
Email links in documents and PDFs
Email links work in Word documents, Google Docs, and PDFs. In Word or Google Docs, create the link the same way: highlight text, insert a link, and type mailto:address@example.com in the URL field. When someone opens the document and clicks the link, their email program opens.
In a PDF, email links work if the PDF was created with the link embedded. If you're converting a Word document to PDF, the links usually carry over. If you're creating a PDF from scratch, your PDF editor (Adobe Acrobat, Preview on Mac, or free tools like PDFtk) has an option to add links. Look for "Add Link" or "Insert Link" in the tools menu.
One important note: email links in documents only work if the person reading the document has an email program installed. If someone is reading your PDF in a web browser without email configured, the link won't function.
Privacy and spam considerations
Email links are slightly better for privacy than typing your address as plain text, because spam bots that crawl websites have a harder time reading mailto: links. However, they're not a complete solution — determined bots can still extract addresses from mailto: code.
If you're very concerned about spam, consider using a contact form instead of an email link. A contact form lets readers send you a message without exposing your actual address on the page. Most website builders include a contact form tool, and you can also use free services like Formspree or Basin to add a form to any website.
If you do use an email link, avoid putting it on a public page that gets indexed by search engines. Use it on pages that are behind a login, or on pages that are less likely to be crawled — like a members-only area or a page that's not linked from your main navigation.
Frequently Asked Questions
Can I add a message body to an email link so text appears automatically?
Yes, you can add a body parameter using <a href="mailto:address@example.com?subject=Subject&body=Message text">. Replace spaces with %20. However, this feature doesn't work reliably across all email programs, and some programs ignore it for security reasons. Subject lines work more consistently than message bodies.
What if I want to send an email to multiple people at once?
You can add multiple addresses separated by commas: <a href="mailto:person1@example.com,person2@example.com">. You can also add CC and BCC fields using ?cc=address@example.com&bcc=address@example.com. Not all email programs support CC and BCC in mailto: links, so test it first.
Why doesn't the email link work on my phone?
Email links work on phones, but your phone must have an email app installed and configured. If you've never set up email on your phone, or if you only use webmail like Gmail in a browser, the link may not work. Try opening your email app first, then clicking the link.
Can I style an email link to look like a button?
Yes. You can add CSS styling to make the link look like a button. In a website builder, you can usually style links using the design panel. In HTML, you'd add a class or style attribute: <a href="mailto:address@example.com" class="button">Contact Us</a>, then define the button appearance in your CSS file. Most website builders handle this visually without requiring code.
Is there a difference between how email links work in HTML versus in a Word document?
The code is the same, but the behavior is slightly different. In HTML on a website, the link opens whatever email program is set as the default on the reader's computer. In Word or Google Docs, the link also opens the default email program, but the document itself stays open in the background. The underlying mailto: code works the same way in both.