Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Community Discussions (All other subjects)
 Send notification by e-mail
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Cliff
Average Member

United States
501 Posts

Posted - 11 November 2003 :  10:02:03  Show Profile  Visit Cliff's Homepage
Is it possible to send an e-mail to someone once a page was visited?

We have our Snitz on an Intranet and there is a report of abuse of the games by some staff on the weekends. I'd like to build a little spyware into it that tells me the user ID who visited the page along with the date and time they visited.

I will have a disclaimer stating this with a "click here to continue" that will let them stop before actually going to the game page.

Thanks!!

redbrad0
Advanced Member

USA
3725 Posts

Posted - 11 November 2003 :  11:38:46  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
Wouldnt it be better to be stored in a database so you can sort and find different things easier? This way your email inbox isnt just slammed with emails.

Brad
Oklahoma City Online Entertainment Guide
Oklahoma Event Tickets
Go to Top of Page

Cliff
Average Member

United States
501 Posts

Posted - 11 November 2003 :  12:10:38  Show Profile  Visit Cliff's Homepage
Nah, but thanks for the suggestion. We have less than 50 people who use the forum. It's a work related Intranet that is "supposed" to be primarily used for procedures feedback / suggestions. I made the mistake of putting the games there and thought nothing of it, but now someone complained to me, so instead of taking them down I will give people the option of continuing knowing their access will be sent to their supervisor. I suspect most people won't go through and there will be almost no e-mail.

Is it possible to do something like this? It sounds simple (Um, to someone who knows what they're doing ).

Thanks
Go to Top of Page

Cliff
Average Member

United States
501 Posts

Posted - 11 November 2003 :  13:44:47  Show Profile  Visit Cliff's Homepage
OK, so it's part way there. I can get an e-mail to send using this info as an included file. What I still need to capture and send with the e-mail is the date / time and most important the username.

<%


Dim objCDO
Set objCDO = Server.CreateObject("CDONTS.NewMail")

%>


<%

objCDO.To = "someemailaddress"
objCDO.From = "someemailaddress"
objCDO.cc = "someemailaddress"

Dim txtSubject
txtSubject = "Hello username has visited the games selection page. They elected to move on past the warning message that was displayed."

objCDO.Subject = "Attn: The Games page has been visited"
objCDO.Body = txtSubject
objCDO.Send

%>
Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 12 November 2003 :  11:03:21  Show Profile
just use VBscript's built-in time and date functions to grab that information off the server. How to capture the username depends on whether or not you're using the forums' inc_ files (inc_header.asp and inc_footer.asp mainly). If you do, you could just grab the username the way it's done in inc_header.asp. You could even create a link to that person's profile on the forums by grabbing the member_id
Go to Top of Page

Cliff
Average Member

United States
501 Posts

Posted - 12 November 2003 :  19:20:03  Show Profile  Visit Cliff's Homepage
Roland, Thanks for the tips, but you assume I have any clue of what you are talking about.

For the date / time, could you give an example of how I could do it? I want it to say "Username enter the games page on date/time"

For the includes, here is what I have at the top of the page:
<!--#INCLUDE FILE="config.asp" -->
<!--#INCLUDE FILE="inc_func_common.asp" -->
<!--#INCLUDE FILE="inc_sha256.asp"-->
<!--#INCLUDE FILE="inc_header.asp" -->
<!--#INCLUDE FILE="games_mail.asp" -->

mail is the page that is mailing me. It works well now, it just doesn't capture anything. How can I include the username in the e-mail? Does the mail page need the includes too?

I appreciate the help!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.3 seconds. Powered By: Snitz Forums 2000 Version 3.4.07