October 6, 2022 | Posted in WordPress
One of our readers recently asked how to add an email address in WordPress. Users can send you an email with only the click of a button if you create a link to their email address. This piece will demonstrate how to create a link in WordPress that points to an email address.
Creating an Email Address Link in WordPress
The process of creating a link to an email address in WordPress is quite similar to the process of adding other links. Please look at our tutorial on including a link in WordPress, which you can find here.
The prefix “HTTP://” or “HTTPS://” is often included at the beginning of the remainder of the URL if you provide a link to another online page. Take this website as an example:
http://www.abc.com.
Links to email addresses are added by replacing the http portion with the mailto: prefix followed by the email address you wish to connect to. In the same way, when adding a link to a website, you need to replace the HTTP part with the mailto: prefix. One example is as follows:
mailto:abc@example.com
Here’s how to include it in a WordPress article.
After selecting the text to which you want to add the link, either hit the CTRL+K key combination (or the Command+K key combination on a Mac) or click the “Insert” in the post editor.
This will bring up the box for inserting links, where you may put your mailto link. Choose the apply button to dismiss the insert link’s pop-up window.
We have now included a link to an email address, as can be seen in the animation that is located above. WordPress will automatically add the mailto: prefix to the email address if it determines that the text you are attempting to link to is an email address. Nothing else needs to be done.
You can attach an email link to any piece of text. You will be required to enter your full link if the text does not include a valid email address. Similar to this:
The Step-by-Step Guide to Manually Adding an Email Link Using HTML in WordPress
If you wish to add a link to an email address in a text widget or a file associated with a WordPress theme, you will need to add the link by creating the HTML.
The following is an example of how to create an email link using HTML:
<a href=”mailto:john@example.com”>
Email Me</a>
Why Should You Not Include Email Links in the Posts and Pages You Create Using WordPress?
The disadvantage of including an email link is that the email address will be made apparent to the public. This makes it possible for email scraping bots to gather it, which means that those email addresses will be subjected to an overwhelming amount of spam.
To send an email, customers are less likely to switch apps (from their browser to their email client), which is another one of the service’s disadvantages. It’s possible that the majority of users won’t wish to send emails from their main email account.
Rather than providing an email link, you could use a contact form as an easy way to sidestep this problem.
Encrypting email addresses is another strategy that may be used to combat automated email programs.
How to Use the WordPress Email Encoder to Prevent Emails from Being Sent to Spammers
Do you want to publish your email address on your website without the risk of it being harvested by spam bots? When you provide a plain text email address or a link to an email address, there is a good chance that a spam email harvesting bot may harvest it. With the help of an email encoder, you can prevent spammers from reading your emails.
Why is Email Encryption So Crucial?
Spam-Protection for Email Addresses