What's WP
Find Everything Related to WordPress - Best Tutoriasl on WordPress!
How to Link an Email Address in WordPress

How to Link an Email Address in WordPress

In recent days, our readers ask us with a question that how to link an email address in WordPress. It is true that users normally prefer to use a contact form than to click an email link, but you can also provide this approach for your visitors to contact you. Here we will guide you on how to add an email link in WordPress.

How to Link an Email Address

The first thing you should remember is to use mailto: instead of http:// or https:// in front when you are linking an email address. As is familiar to you that normal links are often created with http:// or https://, while email links start with mailto: then are followed by an email address. We must emphasize the importance of the prefix because without it, the links will not work. Here is a typical example.

mailto: [email protected]

Link an Email Address in WordPress

On the basis of the form of email links, we will make a further discussion on how to link an email address in WordPress posts. There are two ways to achieve that: one is via insert/edit link, and the other is via HTML.

Insert/Edit Link

Select the target text then click on the insert/edit link button or press CTRL + K on the keyboard. Then just input mailto: + your email into the popup box, and click the blue arrow to apply the link into the target text.

Insert/Edit Link

Also, if you do not select the text, you can also customize it by hitting the link options button. Similarly, input your url and link text as below. In the end, do not forget to finish your configuration with a click on the Add Link button.

Customized Text

Using HTML

Besides the above way, you can also establish an email link with the use of HTML. The complete HTML is just like this:

<a href="mailto:[email protected]">email our support team</a>

With such a piece of HTML, you will get the following email link in your post.

Link Email Address with HTML

When making a comparison between the two ways, we think it is easier for you to adopt the first one because a little error in HTML will lead to an invalid email link.

Stop Spams Caused by Email Links

So far, we have mentioned how to link to an email address and how to use it in WordPress posts. You may have been clear about the process, but there is still a question. Since your email address is open to the public, it means that you expose yourself to troublesome spams.

To be honest, we do not recommend email links for the sake of security. In fact, we stick to the opinion that you should use contact forms as most people do. If you are looking for a plugin, we will recommend WPForms which is one of the most widely used contact form plugins for beginners. The great reputation and ease of use make this plugin deserve your consideration.

But if it is necessary for you to add a link to your email address in WordPress, you’d better learn to deal with the situation with some plugins. encoding email addresses is another way to deal with email bots. In our experience, Email Address Encoder does an excellent job in protecting mailto links from being email-harvested by spammers.

With the use of the plugin, there is no need for you to make settings. Once installed and activated, this plugin will automatically encode email addresses in WordPress. That is to say, email addresses in the plain text will be converted into decimal and hexadecimal entities. As a result, email harvesting bot will lack the ability to identify these email addresses when visiting your page source. But this will have no influence on real human users. They can still see the plain text email addresses.

Author

Zoe is a freelance writer who has a deep knowledge about WordPress. She loves everything related to website building and loves to share her experience with people all over all the world. In the daily life, Zoe loves detective novels as it can train her logical thinking and creativity.