Author |
Topic |
|
Cliff
Average Member
United States
501 Posts |
Posted - 11 November 2003 : 10:02:03
|
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 |
|
Cliff
Average Member
United States
501 Posts |
Posted - 11 November 2003 : 12:10:38
|
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 |
|
|
Cliff
Average Member
United States
501 Posts |
Posted - 11 November 2003 : 13:44:47
|
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
%> |
|
|
Roland
Advanced Member
Netherlands
9335 Posts |
Posted - 12 November 2003 : 11:03:21
|
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 |
|
|
Cliff
Average Member
United States
501 Posts |
Posted - 12 November 2003 : 19:20:03
|
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! |
|
|
|
Topic |
|