Electronics-Related.com
Forums

OT: Emailer from website

Started by Jim Thompson July 19, 2017
Jon Elson wrote:
> Jim Thompson wrote: > >> The trollers are constantly picking up an E-mail address from my >> website, forcing me to periodically change the address. >> >> How are these E-mail "forms" done on websites? No addresses are >> shown, just fill in the blanks and press "send". >> >> I'm looking for something simple that I (a non-Eunuchs-experienced >> person ;-) can install without much grief. >> >> Suggestions? >> >> ...Jim Thompson > Go to the form where you send the email, and hit ctrl/u (this shows html > source on many browsers), and see if your email addr is in the source. I'm > guessing it is right there in plain text. > > Yup, mailto:webmaster@xxx, right there in the html! > > The only way to fix it is to have the user send the email text back to the > web server for mailing, rather than sending it directly through the user's > browser. That way, there would be no reason for the email addr to be in the > html. This will require your html server to run a script language for php > or something like that. > > I'm pretty sure my web store software does it that way, but don't ask me > how. It has some 10,000 .php files! WAYYY too complicated for mortals to > understand more than one TINY part of the code at a time.
I use ASSmaker to generate a Javascript to create the actual link when you click on it. I add a little code to include a page reference from the website, as well. This is the JS from my website: var at = "@"; var bcc = ""; var body = ""; var cc = ""; var email1 = "%20mike.terrell"; var email2 = "earthlink.net"; var email3 = ""; var site = "Michael A. Terrell"; var tag1 = "mail"; var tag2 = "to:"; var cpdt ="The contents of this site are Copyrighted &#4294967295; 2002 - 2017 - Michael A. Terrell"; var email = email1 + at + email2 + email3 which also includes the copyright notice for all the pages. Here is where it is added to a web page: This is as sample line that goes in the web page: <script language="JavaScript" src="email.js"></script><form><input type="button" value="Home" onClick="window.location='index.html'"><input type="button" value="E-mail" OnClick="email0()"></form><script language=javascript><!-- function email0() { var subject = site + " - " + "Coils"; var ass = tag1 + tag2 + email1 + at + email2 + email3 + "?cc=" + cc + "&bcc=" + bcc + "&subject=" + escape(subject) + "&body=" + escape(body); window.location = ass; } //--></script> This is what you see for that page: http://home.earthlink.net/~mike.terrell/Epcol.html You can iew the page source to see how simple it is. There are some bad links and missing files, thanks to Earthlink's great maintenance. The original files are on an old hard drive I have stashed away, so it will take some time to make repairs. Once they are, I will burn a CDROM of all the files for a fast restore. Editing that one file will change the Email address on all the web pages, if needed or desired. ------------------------------------------------------------------ Here is a link to the program: http://www.sintraweb.pt/Public_files/assmkr31.zip -- Never piss off an Engineer! They don't get mad. They don't get even. They go for over unity! ;-)