Page 1 of 1

How to Link to an Email Address in WordPress

Posted: Thu Jan 23, 2025 5:41 am
by Mostafa044
As you can see in the animation above, we've added a link to an email address. WordPress automatically detects that the text you're trying to link to is an email address and adds 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, you must add a full link. For example:


Why should you 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 receive tons of spam on those email addresses.

Another disadvantage is that users are less likely to list of exit cell phone number switch applications (from browser to email program) to send an email. Most users do not want to use their primary email address to send emails.

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

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

Check out our step-by-step guide on how to create a contact form in WordPress .

Another way to combat email bots is to encrypt email addresses. Check out our guide on how to protect emails from spammers with the WordPress Email Encoder .

We hope this article helped you learn how to create a link to an email address in WordPress. You may also be interested in our guide with 14 tips for using the WordPress visual editor .