How to Link to an Email Address in WordPress

Recently one of our readers asked us how to add an email address in WordPress? Creating a link to an email address allows users to send you an email with a click. In this article, we will show you how to link to an email address in WordPress.

How to link to an email address in WordPress

Video Tutorial

Subscribe to WPBeginner

If you don’t like the video or need more instructions, then continue reading.

Creating a Link to an Email Address in WordPress

Adding a link to an email address is very much like adding other links in WordPress. Take a look at our guide on how to add a link in WordPress.

When adding a link to any other web page, you usually add http:// or https:// followed by rest of the url. For example,

Adding link in WordPress

Similarly when adding a link to an email address, you need to replace the http part with mailto: prefix followed by the email address you want to link to. Here is a example:

Here is how you will add it in a WordPress post.

Select the text you want to add the link to and then press CTRL+K (Command+K on Mac) or click on the ‘Insert Link’ button in the post editor.

This will bring up the insert link popup where you need to add your mailto link. Click on the apply button to close the insert link popup.

Adding a link to an email address in WordPress

As you can see in the animation above, we added a link to an email address. WordPress will automatically detect that the text you are trying to link is an email address and will add the mailto: prefix to the email address.

You can add an email link to any text. If the text is not a valid email address then you will need to add your complete link. Like this:

Adding email link to any text in WordPress

How to Manually Add an Email Link in WordPress Using HTML

If you want to add an email link in a text widget or a WordPress theme file, then you will need to add link by writing the HTML.

Here is how you will add an email link using HTML:

<a href="">Email Me</a>

Adding an email link in plain HTML

Why You Should Avoid Adding Email Links in WordPress Posts and Pages?

The downside of adding an email link is that the email address becomes publicly visible. This allows email scraping bots to collect it, which means you will get tons of spam on those email addresses.

Another disadvantage is that users are less likely to switch applications (from browser to their email client) to send an email. Most users may not want to use their primary email address to send out emails.

You can easily avoid this by adding a contact form instead of adding an email link.

We recommend using WPForms. It is the most beginner friendly contact form plugin in the market.

See our step by step tutorial on how to create a contact form in WordPress.

Another way to beat email bots is by encoding email addresses. Check out our tutorial on how to protect emails from spammers with WordPress email encoder.

We hope this article helped you learn how to link to an email address in WordPress. You may also want to see our guide on 14 tips for mastering the WordPress visual editor.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.