SPAM, the by-product of everything

written by Lee

Did you know that Hawaii consumes the most SPAM than anywhere else in the world? Did you know that spam is one of the most annoying things to find in your inbox?

Do you hate it when post your email on your site and you get all that spam from the spambots? Here is a simple javascript code to use on your site that will hopefully help lower the amount of spam you receive. (no guarantees though) I found this neat little javascript when I was visiting a site and was looking at their coding to see how they set up their layout. Anyways, here is the code and I'll show you how to use it.

<script language="javascript" type="text/javascript"> <!-- var username = "you"; var hostname = "emailprovider.com"; var linktext = "Email Me"; document.write("<a href=" + "mail" + "to:" + username + "@" + hostname + ">" + linktext + "</a>"); //--> </script>

Where it says var username = "you"; you see the name you, that is where you put your username ie. coolgirl83@email.com, the coolgirl83 part would go in the quotations.

Next, var hostname = "emailprovider.com";, where it says emailprovider.com, you would enter your email provider and using our example email; coolgirl83@email.com, the email.com portion would go there.

Lastly, var link text = "Email Me"; this is where you add the text that you would like linked. Examples, click here, email me, contact me, coolgirl83@email.com, etc, etc.

Now do not edit anything else asides from these three sections. If you do the script will not work correctly. Also make sure that you have the beginning script language="javascript" type="text/javascript" and the ending /script (including < and >)

As a last little precaution, just in case you have filters on your inbox, you can add the subject function to this script. Go back to the var hostname = "emailprovider.com"; and right at the end of the domain name, add this ?subject=blahblahblah; the question mark, ?, must be included. Now the only thing is that you can't have any spaces in the subject. ie. my website NOT my website. If you do add spaces the subject will end up as 'my'.

<script language="javascript" type="text/javascript"> <!-- var username = "coolgirl83"; var hostname = "email.com?mywebsite"; var linktext = "Contact Me"; document.write("<a href=" + "mail" + "to:" + username + "@" + hostname + ">" + linktext + "</a>"); //--> </script>

If the javascript is just too much of a hassle for you, you can always stick to the old way of typing your email as: coolgirl83@REMOVE/DELETETHISemail.com. Instead of REMOVETHIS, you can put DELETETHIS, DELETE, NOSPAM, something else that will alert those who are emailing you that they must remove the portion in capitals before sending the email, or else it will not be received by you. As an alternative, you may also type your email as coolgirl83[at]email.com. It would then show up like this in your coding:

<a href="mailto:coolgirl83@DELETETHISemail.com">email me</a> <a href="mailto:coolgirl83[at]email.com">email me</a>