Skip to main content
Inspiring
July 4, 2018
Answered

How to add mailto:"" link to 142 email address at once?

  • July 4, 2018
  • 2 replies
  • 924 views

I'd like to make all email address clickable. I can search for the email and 142 come up. How do I make them all clickable at once, ie assign a link with a mailto: parameter at once?

    This topic has been closed for replies.
    Correct answer Nancy OShea

    timothyi34297763  wrote

    How could I address the issue of spam. Is there a way to make it hidden to bots?

    No.  The simple answer is don't post email addresses on the web.   Use a contact form with secure server-side script that conceals email and thwarts spam. 

    2 replies

    Nancy OShea
    Community Expert
    Community Expert
    July 4, 2018

    I hope you're not publishing emails on the web.  If you are, this will be a huge magnet for email harvesters & spam bots.

    Nancy O'Shea— Product User & Community Expert
    Legend
    July 4, 2018

    Do a find and replace.

    if you have something like <div>blah@blah.com</div>

    Search for blah@blah.com

    Replace with:

    <a href="mailto:blah@blah.com" class="mailto">blah@blah.com</a>

    Then use some css to style the email anchor:

    .mailto {

    text-decoration: none;

    color: #999;

    }

    HOWEVER if you have 142 instances of an email address in your website you are going to be getting potentailly a massive amount of unwanted spam.

    I rarely use an email address, prefering to use a contact form instead or at least try and encrypt the email address somehow, which you used to be able to do........I don't know now as I try to avoid using a direct email address in a website

    Inspiring
    July 12, 2018

    Thank you osgood. This is the solution indeed. I got tired of waiting so I did it manually. There was only 42. Next time, I'll know.

    How could I address the issue of spam. Is there a way to make it hidden to bots?

    Nancy OShea
    Community Expert
    Nancy OSheaCommunity ExpertCorrect answer
    Community Expert
    July 12, 2018

    timothyi34297763  wrote

    How could I address the issue of spam. Is there a way to make it hidden to bots?

    No.  The simple answer is don't post email addresses on the web.   Use a contact form with secure server-side script that conceals email and thwarts spam. 

    Nancy O'Shea— Product User & Community Expert