Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Website Mailbox


  • Please log in to reply
2 replies to this topic

#1 jbylake

jbylake

  • Members
  • 8 posts
  • OFFLINE
  •  
  • Local time:11:12 PM

Posted 28 December 2010 - 09:40 PM

I hope someone can help me. I've been building and refining a website for a year now, reading and learning as I go.
My question is, is there anyway in HTML to place an "email us", that opens the user's email client, without the use of
scripting language? I haven't had time to learn Java, PHP, or others. Just learning c#, a little. Thank you for any help
in advance.

J.

BC AdBot (Login to Remove)

 


#2 Romeo29

Romeo29

    Learning To Bleep


  • Members
  • 3,194 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Location:127.0.0.1
  • Local time:11:12 PM

Posted 29 December 2010 - 09:09 AM

<a href="mailto:billgates@microsoft.com">email us</a>
But this method has a problem. Because you are putting your email address in plain text, soon the spambots would pick it up and you would start getting lots of spam. You can use a little javascript to hide the email address like this :

<script language="JavaScript">
	var user = "billgates";
	var domain = "microsoft.com";
	document.write("<a href=\"mailto:" + user + "@" + domain + "\">email us</a>");
</script>

Edited by Romeo29, 29 December 2010 - 09:15 AM.


#3 jbylake

jbylake
  • Topic Starter

  • Members
  • 8 posts
  • OFFLINE
  •  
  • Local time:11:12 PM

Posted 29 December 2010 - 04:10 PM

<a href="mailto:billgates@microsoft.com">email us</a>
But this method has a problem. Because you are putting your email address in plain text, soon the spambots would pick it up and you would start getting lots of spam. You can use a little javascript to hide the email address like this :

<script language="JavaScript">
	var user = "billgates";
	var domain = "microsoft.com";
	document.write("<a href=\"mailto:" + user + "@" + domain + "\">email us</a>");
</script>

Thank you very much. I was busy trying to learn C#, I guess I need to put that away and learn JS.

J.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users