Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

reliable mailto: masking?

Options
  • 14-05-2007 9:57pm
    #1
    Registered Users Posts: 8,488 ✭✭✭


    I usually try to avoid putting email address in websites these days but I've got a situation where it's necessary.

    Is there a reliable way of masking an email address from bots, while still preserving a valid 'mailto:' for the user?

    I seem to recall using PHP for this in the past, but it's been a while. Anyone have a tried and tested method?


Comments

  • Closed Accounts Posts: 1,200 ✭✭✭louie


    you can use javascript like this:
    <a title="info" rel="domain_name.com"	href="mailto:info[at symbol]domain_name.com" onclick="this.href='mailto:'+this.getAttribute('title')+'@'+this.getAttribute('rel')"><span>Send Us an Email</span></a>
    


  • Registered Users Posts: 8,488 ✭✭✭Goodshape


    Cheers, louie. That's the sort of thing I was looking for alright.


  • Closed Accounts Posts: 1,200 ✭✭✭louie


    no problem, and you are welcome.


Advertisement