WPBeginner

Beginner's Guide for WordPress

  • Blog
    • Beginners Guide
    • News
    • Opinion
    • Showcase
    • Themes
    • Tutorials
    • WordPress Plugins
  • Start Here
    • How to Start a Blog
    • Create a Website
    • Start an Online Store
    • Best Website Builder
    • Email Marketing
    • WordPress Hosting
    • Business Name Ideas
  • Deals
    • Bluehost Coupon
    • SiteGround Coupon
    • WP Engine Coupon
    • HostGator Coupon
    • Domain.com Coupon
    • Constant Contact
    • View All Deals »
  • Glossary
  • Videos
  • Products
X
☰
Beginner's Guide for WordPress / Start your WordPress Blog in minutes
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
Recommended
WordPress Plugins
View all Guides

WPBeginner» Blog» Beginners Guide» How to Link to an Email Address in WordPress

How to Link to an Email Address in WordPress

Last updated on January 17th, 2017 by Editorial Staff
145 Shares
Share
Tweet
Share
Pin
Free WordPress Video Tutorials on YouTube by WPBeginner
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, http://www.example.com

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:

mailto:john@example.com

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="mailto:john@example.com">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.

145 Shares
Share
Tweet
Share
Pin
Popular on WPBeginner Right Now!
  • How to Start Your Own Podcast (Step by Step)

    How to Start Your Own Podcast (Step by Step)

  • Google Analytics in WordPress

    How to Install Google Analytics in WordPress for Beginners

  • How to Fix the Error Establishing a Database Connection in WordPress

    How to Fix the Error Establishing a Database Connection in WordPress

  • Revealed: Why Building an Email List is so Important Today (6 Reasons)

    Revealed: Why Building an Email List is so Important Today (6 Reasons)

About the Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Trusted by over 1.3 million readers worldwide.

The Ultimate WordPress Toolkit

20 Comments

Leave a Reply
  1. Deneen says:
    Sep 25, 2020 at 3:21 pm

    I can’t figure out how to view the emails that are sent via my “Contact Me” page. I keep sending test emails, but they aren’t showing up. How do I link my website’s email address to my contact me forms?

    Reply
    • WPBeginner Support says:
      Sep 28, 2020 at 10:12 am

      It would depend on the tool you are using and where you are sending the messages, if you are not seeing the emails, the most common reason would be how WordPress sends emails. To get past that you would want to take a look at our guide below:

      https://www.wpbeginner.com/plugins/how-to-set-up-wp-mail-smtp-with-any-host-ultimate-guide/

      Reply
  2. Gerald-in-Crete says:
    Aug 4, 2020 at 9:52 am

    I absolutely endorse your simple and direct explanations. I am referring to how to insert an e-mail hyperlink in a posting.

    Reply
    • WPBeginner Support says:
      Aug 4, 2020 at 11:16 am

      Glad you found our content helpful :)

      Reply
  3. Mima says:
    Jul 2, 2020 at 9:12 am

    Hello there,

    Thank you for providng such great support and guidance for beginners – most helpful. Please can you advise what the string is for mailto links which pre-populate the subject line. Is it as below?:

    “mailto:john@example.com?subject=”

    Thank you in advance for your response,
    Mima

    Reply
    • WPBeginner Support says:
      Jul 7, 2020 at 11:06 am

      For adding content to the subject line you have the correct code for the HTML method.

      Reply
  4. Sebastian Kayser says:
    Apr 23, 2019 at 4:37 am

    Excellent and very helpful article. Thank you!

    Reply
    • WPBeginner Support says:
      Apr 23, 2019 at 11:46 am

      You’re welcome :)

      Reply
  5. Jessica says:
    Sep 6, 2018 at 3:18 pm

    How can I safely allow people to send .jpeg files to me? I turn them into art and I don’t know how to allow them to upload a picture. Is the best way to let them email me a photo?

    Reply
    • WPBeginner Support says:
      Sep 6, 2018 at 7:23 pm

      Hi Jessica,

      You can use WPForms to create a contact form with a file upload field. This will allow users to upload a file and send it to you with rest of the message. For instructions, please see how to add file upload field to a form.

      Reply
  6. Lauren says:
    Aug 6, 2018 at 4:43 pm

    Thank you! This was very helpful and straight to the point.

    Reply
  7. Marlene says:
    Oct 5, 2017 at 9:42 am

    Hi there

    I am also creating the email links in the WP site text as demonstrated, yet, when we click on them (front page) they go to Chrome and do not create and email?

    What am I doing wrong?

    Reply
  8. Kate says:
    May 23, 2017 at 1:56 am

    Hello

    Thank you for this…however, i have these standing OK on the site, but they dont link to actually make an email – all they do at the bottom is show the address. On mobile it works fine…

    Reply
  9. Johnnie Rhodes says:
    Apr 12, 2017 at 8:28 pm

    Thank you! :)

    Reply
  10. saramike says:
    Mar 13, 2017 at 2:29 pm

    useful link

    Reply
  11. SUNIL says:
    Jan 29, 2017 at 11:36 am

    Thank you

    Reply
  12. Nathan says:
    Nov 16, 2016 at 3:32 am

    Good information and details with perfect photos

    Reply
  13. matingholami says:
    Nov 16, 2016 at 1:01 am

    Great Post,
    But I’m searching for something different, could U help me?

    I want registered users to be allowed to write posts but not allowed to publish them, I mean they can write posts but every post written by users must be checked and edited and published by admins
    although I want to control admin area interface, I want to be able to disable admin widgets or show messages to them through the admin area

    Reply
    • WPBeginner Support says:
      Nov 16, 2016 at 10:36 am

      Please see our guide on how to allow users to submit posts to your WordPress site.

      Reply
    • Mohammad Sharfuddin says:
      Nov 16, 2016 at 1:02 pm

      Install User Roles and Capabilities Plug-in

      Reply

Leave a Reply Cancel reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

Over 1,320,000+ Readers

Get fresh content from WPBeginner

Featured WordPress Plugin
All in One SEO
Improve website SEO rankings with AIOSEO plugin. Learn More »
How to Start a Blog How to Start a Blog
I need help with ...
Starting a
Blog
WordPress
Performance
WordPress
Security
WordPress
SEO
WordPress
Errors
Building an
Online Store
Useful WordPress Guides
    • 7 Best WordPress Backup Plugins Compared (Pros and Cons)
    • How to Fix the Error Establishing a Database Connection in WordPress
    • Why You Need a CDN for your WordPress Blog? [Infographic]
    • 30 Legit Ways to Make Money Online Blogging with WordPress
    • Self Hosted WordPress.org vs. Free WordPress.com [Infograph]
    • Free Recording: WordPress Workshop for Beginners
    • 24 Must Have WordPress Plugins for Business Websites
    • How to Properly Move Your Blog from WordPress.com to WordPress.org
    • 5 Best Contact Form Plugins for WordPress Compared
    • Which is the Best WordPress Popup Plugin? (Comparison)
    • Best WooCommerce Hosting in 2021 (Comparison)
    • How to Fix the Internal Server Error in WordPress
    • How to Install WordPress - Complete WordPress Installation Tutorial
    • Why You Should Start Building an Email List Right Away
    • How to Properly Move WordPress to a New Domain Without Losing SEO
    • How to Choose the Best WordPress Hosting for Your Website
    • How to Choose the Best Blogging Platform (Comparison)
    • WordPress Tutorials - 200+ Step by Step WordPress Tutorials
    • 5 Best WordPress Ecommerce Plugins Compared
    • 5 Best WordPress Membership Plugins (Compared)
    • 7 Best Email Marketing Services for Small Business (2021)
    • How to Choose the Best Domain Registrar (Compared)
    • The Truth About Shared WordPress Web Hosting
    • When Do You Really Need Managed WordPress Hosting?
    • 5 Best Drag and Drop WordPress Page Builders Compared
    • How to Switch from Blogger to WordPress without Losing Google Rankings
    • How to Properly Switch From Wix to WordPress (Step by Step)
    • How to Properly Move from Weebly to WordPress (Step by Step)
    • Do You Really Need a VPS? Best WordPress VPS Hosting Compared
    • How to Properly Move from Squarespace to WordPress
    • How to Register a Domain Name (+ tip to get it for FREE)
    • HostGator Review - An Honest Look at Speed & Uptime (2021)
    • SiteGround Reviews from 4464 Users & Our Experts (2021)
    • Bluehost Review from Real Users + Performance Stats (2021)
    • How Much Does It Really Cost to Build a WordPress Website?
    • How to Create an Email Newsletter the RIGHT WAY (Step by Step)
    • Free Business Name Generator (A.I Powered)
    • How to Create a Free Business Email Address in 5 Minutes (Step by Step)
    • How to Install Google Analytics in WordPress for Beginners
    • How to Move WordPress to a New Host or Server With No Downtime
    • Why is WordPress Free? What are the Costs? What is the Catch?
    • How to Make a Website in 2021 – Step by Step Guide
Deals & Coupons (view all)
SendinBlue Coupon Code
Sendinblue Coupon
Get Sendinblue, a powerful marketing automation toolkit for small businesses, for FREE.
InMotion Hosting
InMotion Hosting Coupon
Get an exclusive 50% off InMotion hosting plus a free domain.
Featured In
About WPBeginner®

WPBeginner is a free WordPress resource site for Beginners. WPBeginner was founded in July 2009 by Syed Balkhi. The main goal of this site is to provide quality tips, tricks, hacks, and other WordPress resources that allows WordPress beginners to improve their site(s).

Join our team: We are Hiring!

Site Links
  • About Us
  • Contact Us
  • FTC Disclosure
  • Privacy Policy
  • Terms of Service
  • Free Blog Setup
  • Free Business Tools
  • Growth Fund
Our Sites
  • OptinMonster
  • MonsterInsights
  • WPForms
  • SeedProd
  • Nameboy
  • RafflePress
  • Smash Balloon
  • AIOSEO

Copyright © 2009 - 2021 WPBeginner LLC. All Rights Reserved. WPBeginner® is a registered trademark.

Managed by Awesome Motive | WordPress hosting by SiteGround | WordPress Security by Sucuri.