Click here to get back home

Receiving emails when someone views my site

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Receiving emails when someone views my site bounce 02-11-2005
Posted by bounce on February 11, 2005, 3:09 am
Please log in for more thread options
Hello,

Consider the following HTML:

<form action="/cgi-bin/mailmanager.pl" method="post">
<input type="hidden" name="recipient"
value="bounce@springbock.net">
<input type="hidden" name="subject" value="some value">
<p><input type="submit" value="Submit"></p>
</form>

This sends a blank email to me when the user clicks the "Submit"
button. Is there any way emails be sent w/o user interaction? I would
like to receive emails every time someone visits my site, it containing
information about their configuration (e.g. user language, whether
cookies are activated, whether javascript is enabled, what JVM is being
used, etc.).

I have neither root access on the server, nor can I use personal
server-side scripts. My ISP has lots of CGIs for me to use, but others
aren't allowed.

Thanks,
Walter Gildersleeve
usenet at easypeas dot net.



Posted by kaeli on February 11, 2005, 8:30 am
Please log in for more thread options
bounce@springbock.net enlightened us with...
> This sends a blank email to me when the user clicks the "Submit"
> button. Is there any way emails be sent w/o user interaction?

Only if the user has javascript enabled. Well, unless you run it server-side,
but that won't help you (see below).
See
document.formname.submit();
and
<body onload="somefunction()">.

Keep in mind that form submittal generally makes the location of the document
in the window change. You may need to specify a different target.

> I would
> like to receive emails every time someone visits my site, it containing
> information about their configuration (e.g. user language, whether
> cookies are activated, whether javascript is enabled, what JVM is being
> used, etc.).

If you're looking for stats, the most reliable stuff comes from headers sent
by the browser (though those can be, and are, sometimes faked i.e. Opera
sending as MSIE). Your host should provide you with logged stats. If they do
not, switch hosts.
Other than that, you'd have to run client-side testing to discover things
like whether cookies are *enabled* (that is, write one, then read it back).
Good luck finding the JVM version. :)
Any client-side testing requires client-side scripting - javascript, usually,
though MSIE supports VBScript.
I would certainly question your motives for doing something that comes darn
close to violating a user's privacy, though.

>
> I have neither root access on the server, nor can I use personal
> server-side scripts. My ISP has lots of CGIs for me to use, but others
> aren't allowed.

I'd switch hosts. It's not like it's hard to find one that is inexpensive and
DOES allow custom scripts or at least support PHP and/or SSI.


--
--
~kaeli~
Kill one man and you are a murderer. Kill millions and you
are a conqueror. Kill everyone and you are God.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace



Posted by NullBock on February 11, 2005, 8:15 am
Please log in for more thread options
Thanks, Kaeli...a coworker of mine just showed me the javascript
solution, which should work. I wanted a pure HTML solution, but that's
probably too much to ask.

> I would certainly question your motives for doing something that
comes
> darn close to violating a user's privacy, though.

You're kidding, right? Why on earth is the information available, if
not to use? Programs use this information constantly to conform better
to the user. I mean, the base assumption behind sandboxes is that
there *is* information that is safe to expose, and that can be used to
build a better presence.

> I'd switch hosts.

My ISP *does* present the possibility, I just don't want to pay for it.
As long as I can get away with client-side scripting, I'm golden.

Walter



Posted by kaeli on February 11, 2005, 1:19 pm
Please log in for more thread options
bounce@springbock.net enlightened us with...

> > I would certainly question your motives for doing something that
> comes
> > darn close to violating a user's privacy, though.
>
> You're kidding, right? Why on earth is the information available, if
> not to use? Programs use this information constantly to conform better
> to the user. I mean, the base assumption behind sandboxes is that
> there *is* information that is safe to expose, and that can be used to
> build a better presence.
>

Honestly?
I like to believe that most people would be honorable and use the info for
just that.
Unfortunately, like many things that sound good in theory, spammers and
malicious people have found ways to circumvent the sandbox and invade
people's privacy. MSIE is notorious for accidentally allowing such things to
happen (the infamous buffer overflow).
Because of the nasty people, now we all have to consider what we post on
public forums out of fear that some will use the information we posted to do
bad things.

Think about it -- my public records, freely available, say everything about
me. Someone can go buy my credit history, find out what properties I own, and
more. Some people have legit reasons for wanting that. Others will use it for
identity theft.

--
--
~kaeli~
A chicken crossing the road is poultry in motion.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace



Posted by Lachlan Hunt on February 12, 2005, 2:15 pm
Please log in for more thread options
kaeli wrote:
> Think about it -- my public records, freely available, say everything about
> me. Someone can go buy my credit history, find out what properties I own, and
> more. Some people have legit reasons for wanting that. Others will use it for
> identity theft.

Kaeli, I think you're over reacting just a little. The kind of
information the OP is interested in cannot possibly be used for anything
that serious.

NullBock, if you insist on recieving an e-mail everytime someone loads a
document and you aren't worried about recieving an abundance of e-mails
sent every single time a user reloads a page, why don't you try writing
a cgi script that sends an image back, but in the process also sends off
your e-mail by including this within your pages.

<img src="/cgi-bin/counter" alt="" height="1" width="1">

The script could just return a useless spacer gif or even a hit counter
if you want to go back to '90s craze of letting others know how many
visitors you've had just so you can boast about how (un)popular your
website is. The e-mail address and whatever else you need can be coded
into the script, without it needing to be present in the markup.
Although, I don't recommend that method, it's a waste of time when all
the hard work of creating useful statistics has already been done by
many statistics companies.

Why don't you try a service that provides free statistics like that, if
you're not willing to pay for that provided by your ISP or switch to one
that has that included in the package. There are many services that
offer such services:
http://www.google.com/search?q=Free+Web+Site+Statistics
--
Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/ Rediscover the Web
http://SpreadFirefox.com/ Igniting the Web


Similar ThreadsPosted
counting link picture views February 16, 2005, 3:22 am
HTML emails... July 26, 2006, 10:10 am
Formattable photo emails? August 25, 2004, 4:00 am
Your Boss is Watching Your Emails!! May 7, 2006, 8:24 am
sending pages as emails February 10, 2008, 10:04 pm
Recommendation for HTML formatted emails August 8, 2004, 8:41 pm
Re: Sending HTML Emails (To Denmark) May 7, 2008, 3:28 am
Re: Sending HTML Emails (To Denmark) May 7, 2008, 8:41 pm
Copy tables from Lotus Notes emails to HTML editors... October 26, 2006, 11:44 am
Recommendations for good Web site hosting company (for personal Web site) April 16, 2006, 7:49 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap