Click to See Complete Forum and Search --> : How do I make email into a link?


NJDevil
01-05-2008, 09:10 AM
Hi, I think my HTML book tells me how to do this, but it's not working. I need to make the email address on my website clickable - so it opens into someone's email program. How do I do this?? PLEASE & THANK YOU! :confused:

blue-eye-labs
01-05-2008, 10:10 AM
<a href="mailto:your.name@address.com?subject=subject">your.name@address.com</a>.


It's just a mailto: link, there's all sorts of stuff about it online.

Major Payne
01-06-2008, 12:55 PM
Might want to think about munging your email code: How to Avoid Being Harvested by Spambots (http://www.projecthoneypot.org/how_to_avoid_spambots_3.php)

Don't like that tool, a simpler one at htmlfixit.com (http://htmlfixit.com/tools.php).

Ron

felgall
01-06-2008, 03:17 PM
Use a contact form instead. No matter how you put your email address into a page the spammers will eventally decode it. Also an email link requires a separate email program on the same computer which only some people have available (eg. libraries, internet cafes, schools etc do not).

blue-eye-labs
01-06-2008, 03:27 PM
but a mail link was requested, and that is how you do it. I personally use contact forms although I was looking into getting javascript to write it so spambots won't get it.

NJDevil
01-07-2008, 11:53 AM
London calling! Awesome! Thank you so much, my HTML book did not have it the way you did. I was going to do a contact form, but my book said a CGI script would open it up to hackers & crap, so I said forget that. I will read the Spambot link. Thanks, all of you.

felgall
01-07-2008, 04:08 PM
A form2mail script will be far far more secure than posting your email address on the web page itself where the spammers can get it without having to do anything more than access your page.

blue-eye-labs
01-07-2008, 05:02 PM
even better is just using a form and then PHP's mail() function, which is stupidly easy to use.

Yelgnidroc
01-07-2008, 05:06 PM
To take this slightly further, ensure that your form does not result in you becoming a spam relay - especially if you will be paying for it!!