Click to See Complete Forum and Search --> : e-mail notification


pahl
04-01-2004, 01:11 PM
I am looking for a little routine that will send, to a designated e-mail address, notification each time a specific web page is viewed. No other information is required except that the page has been opened.

Thanks for any help.

sunitad
04-01-2004, 01:22 PM
Body onload=mailto:abc@abc.com

jaegernaut
04-01-2004, 01:54 PM
The problem you will likely encounter with the mailto: is that the user must have an email client set up to send from, and it will usually prompt the user to "okay" the sending of the email, which they may not want to do as it will expose their email address.

I don't know why you would want to do this, so I can't really give you an alternative at this point other than using a server-side script to process the notification.

pahl
04-01-2004, 02:00 PM
Yes, a server side script would be better.

The purpose is that I use a web page to post a message to someone traveling. Only they know the URL. I would like to know when they have looked at the message through an e-mail notification which would be a way to log the time and date.

pmoby
04-01-2004, 04:59 PM
I'm not good at javascript but I guess one would trigger an alert in the person's browser as it tries to execute a mail client.
You can easily achieve that with a Perl script that display an invisible 1*1 pixel transparent image in the html page and will email you the IP address, time, referal, browser used, etc when that person accesses your page.
I once had a special need to know such a thing and got paged on my cellphone the second the person opened up the HTML page I had "boobytrapped" ;)