The simplest way: use mailto links in email and web forms

A mailto link is a clickable email address that opens the reader's email program when they click it. You create one by typing mailto: followed by the email address, then wrapping it in a link. In HTML (the code behind web pages), it looks like this: <a href="mailto:name@example.com">name@example.com</a>. When someone clicks that link, their default email program opens with a blank message addressed to that person.

Most people encounter mailto links on websites, where clicking an email address automatically starts a new message. You can also create them in documents you share online. The main advantage is that it saves the reader from copying and pasting an address by hand — they just click and go.

Mailto links work in almost every email program and web browser. They do not require any special software or plugins. The reader's computer straightforward needs to have an email program set as the default, which is true for most people.

Key Takeaways

  • A mailto link opens the reader's email program when clicked, saving them from typing or copying an address.
  • In HTML, you write it as <a href="mailto:address@example.com">text here</a>, where the text can be the address itself or any other words.
  • You can add a subject line and message body to a mailto link so the email opens with those fields already filled in.
  • Mailto links work in web browsers and most email programs, but do not work in plain text files or documents that do not support HTML.

Adding a subject line and pre-filled message

You can make a mailto link more useful by including a subject line and even a draft message. This is helpful when you want the reader to send you information in a specific format or to know what the email is about before they write it.

The syntax is: <a href="mailto:name@example.com?subject=Your Subject&body=Your message here">Click here</a>. The question mark separates the email address from the options. Use &subject= for the subject line and &body= for the message text. If your subject or message has spaces, replace each space with %20.

For example, a link that opens an email about a rental process might look like: <a href="mailto:landlord@example.com?subject=Rental%20Application%20Question&body=I%20have%20a%20question%20about%20the%20application%20process.">Email the landlord</a>. When clicked, it opens a new message with the subject and body already there, and the reader can add their own text or send it as-is.

Where mailto links work and where they do not

Mailto links work reliably in web browsers, on websites, and in HTML-formatted emails. They also work in documents created in word processors like Microsoft Word or Google Docs when those documents are saved as web pages or shared online. However, they do not work in plain text files, PDFs, or printed documents.

On mobile phones and tablets, mailto links still work — they open the device's email app instead of a desktop program. This is usually seamless for the user. The one exception is if someone has no email program set up on their device, in which case they will see an error message.

Some email programs and web-based email services (like Gmail) may block or handle mailto links differently for security reasons. This is rare, but if you are sharing a mailto link with someone and they report it is not working, ask them to try copying and pasting the address instead.

Creating mailto links in common tools

In Microsoft Word: Type the email address, then right-click it. Select "Add a Hyperlink" (or press Ctrl+K). In the dialog box, type mailto: before the email address in the "Address" field. Click OK. The address will now be underlined and clickable.

In Google Docs: Highlight the text or email address you want to turn into a link. Click the link icon in the toolbar (or press Ctrl+K). In the box that appears, type mailto: followed by the email address. Press Enter. The text is now a clickable link.

In Gmail: Gmail does not let you create mailto links in the compose window, but you can paste them into emails if you copy them from elsewhere. If you receive a mailto link in an email, clicking it will open a new Gmail compose window addressed to that person.

On a website or in HTML: Use the format <a href="mailto:address@example.com">Email us</a> in your HTML code. If you are using a website builder like Wix or Squarespace, look for a "Link" or "Add Link" button in the text editor, then choose "Email" from the dropdown menu and enter the address.

Why use a mailto link instead of just typing the address

A mailto link is faster for the reader. They click once and their email program opens ready to send. Without a link, they have to copy the address, open their email program, paste it into the "To" field, and then start typing. For a single email this is not a big difference, but on a page with many contact addresses, links save time.

Mailto links also reduce typos. When someone clicks a link, they cannot accidentally mistype the address. This is especially useful if your email address is long or has unusual characters.

From a document-sharing perspective, a mailto link is also more professional and clearer. A reader scanning a page can when ready see that something is clickable and know what will happen when they click it.

Privacy and security considerations

Mailto links are visible in the page source code of any website. This means email addresses in mailto links can be harvested by automated bots that scan the web for addresses to add to spam lists. If you are posting your personal email address on a public website, be aware that it may eventually receive unwanted mail.

One way to reduce this risk is to use a contact form instead of a mailto link. A contact form lets readers send you a message without your email address being visible in the page code. Most website builders and hosting services offer contact form tools.

If you do use a mailto link on a public page, consider using a separate email address for that purpose — one you do not use for personal or financial matters. This way, if it does end up on spam lists, the damage is limited to that one account.

Frequently Asked Questions

Can I make a mailto link that sends to multiple people at once?

Yes. Separate each email address with a comma and no space: <a href="mailto:person1@example.com,person2@example.com">Email both</a>. When clicked, the email program will open with both addresses in the "To" field. Not all email programs handle this the same way, so test it first.

What if someone clicks a mailto link and nothing happens?

The most common reason is that they do not have an email program set as their default. On Windows, they can go to Settings > Apps > Default Apps and set one. On Mac, they can go to System Preferences > General and choose a default email client. If they use web-based email only (like Gmail), they may need to install a desktop email program or use a contact form instead.

Can I use a mailto link in a PDF?

Yes, if the PDF was created with a tool that supports links (like Word or Google Docs exported as PDF). When you create the link in the original document, it carries over to the PDF. However, if you are editing a PDF directly, most PDF editors do not support creating new mailto links — you would need to recreate the document in Word or another tool first.

Is there a way to hide my email address from spam bots?

Partially. You can use a contact form instead of displaying your email address at all. You can also use JavaScript to hide the address in the page code, though determined bots can still find it. The most reliable method is to not post your personal email on public pages — use a dedicated email address for public contact, or use a contact form.