In this instance, I included the _javascript_ at the bottom of the home pages of a bunch of sites.  The ASP script could be hosted anywhere that you have ASP and a DB to write to.  Since I do Web design, and I don't trust the stats that other companies give out, I wanted to figure out what screen resolutions people were using so that I could determine if it was safe to start designing to a 800 x 600 size by default.  I believe when we ran this over a year ago, it showed only about 5% of traffic was using 640 x 480 or below, a huge change from the past.

There are many environment variables available to you even without appending arguments to the image script, essentially all the stuff that you can log in IIS, but you can also append arguments to the script using _javascript_ or by generating the tag in ASP, so any piece of data that _javascript_ or ASP can be made aware of can be logged.  If you add this to KWM, you would use IMail's tags to add variables to the script for tracking.  To make good use of this though, you would need to write a program that went through the data that you collected and made sense of it.

Note that image scripts are used all the time by bulk mailers (spammers and otherwise) so that they can verify that individual messages are getting read.  Apparently people also hide this type of thing in Word Documents or any other type of document that can call an image.

Matt



Scott Heath wrote:
Ok, Now you got me interested in how this works. I have no need for it, but it's cool. Where (what file) do I put the reference to the ASP? I'm pulling my hair out on my dev server trying to get it to work.

---------- Original Message ----------------------------------
From: Matt <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date:  Thu, 15 Jan 2004 13:49:42 -0500

  
Here's an example of how this might work.  I installed the following 
_javascript_ on a site so that I could survey the monitor resolutions that 
were being used:

   <SCRIPT LANGUAGE="_javascript_1.2" TYPE="text/_javascript_">
   <!--
   if (screen) {
   document.write("<IMG
   SRC=''
   WIDTH='1' HEIGHT='1' BORDER='0'>");
   } else {
   document.write("<IMG
   SRC='' WIDTH='1'
   HEIGHT='1' BORDER='0'>")
   }
   //-->
   </SCRIPT>


The script that it called would then put the data into SQL Server and 
redirect to a transparant GIF so as to not generate any errors.

   <%@ Language=VBScript %>
   <%Option Explicit%>


   <%
   '---------------------------------------------------------------------------
   ' Customize Database Settings Here
   '---------------------------------------------------------------------------
   Dim sDBServer, sDBLogin, sDBPassword, sDBName

   sDBServer        = "***removed***"
   sDBLogin        = "***removed***"
   sDBPassword        = "***removed***"
   sDBName            = "***removed***"


   '---------------------------------------------------------------------------
   ' Function:        OpenDBByFileDSN
   ' Contents:        Opens a Database using the File DSN.
   ' Arguments:    sDBName (Database name without the .dsn extension)
   ' Returns:        A Connection Object.
   '---------------------------------------------------------------------------
   Function OpenDBByFileDSN ()
       Dim cn
       Dim sConnStr
      
       sConnStr = "Driver={SQL Server};Server=" & sDBServer & ";Uid=" &
   sDBLogin &_
           ";Pwd=" & sDBPassword & ";Database=" & sDBName
       'Create a connection object
       Set cn = Server.CreateObject("ADODB.Connection")
       cn.Open sConnStr
       Set OpenDBByFileDSN = cn
   End Function


   '---------------------------------------------------------------------------
   ' Function:        ReplaceCharactersForASP
   ' Contents:        Replaces special characters with thier ASP ASCII
   equalivant
   ' Arguments:    Any string
   ' Returns:        String with special characters replaced
   '---------------------------------------------------------------------------
   Function ReplaceCharactersForASP(ByVal var)
       var = Replace(var, "'", "''")
   '    var = Replace(var, chr(34), chr(34))
   '    var = Replace(var, ",", chr(44))
       ReplaceCharactersForASP = var
   End Function


   '---------------------------------------------------------------------------
   ' Main Script
   '---------------------------------------------------------------------------
   Dim oConnObj, oRS, sQuery

   sQuery = "Insert into CaptureLog Values ('" &
   ReplaceCharactersForASP(Request("Height")) &_
       "', '" & ReplaceCharactersForASP(Request("Width"))  &_
       "', '" & ReplaceCharactersForASP(Request("Colors")) &_
       "', '" & ReplaceCharactersForASP(Request("Site")) & "')"

   Set oConnObj = OpenDBByFileDSN()
   Set oRS = Server.CreateObject("ADODB.Recordset")
   oRS.Open sQuery, oConnObj, 3 'adOpenStatic

   Set oConnObj = Nothing

   ' Redirect to the spacer.gif
   Response.Buffer = True
   Response.Clear()
   Response.Redirect("http://www.***removed***.com/shared/spacer.gif")


   %>


Don't ask me about the script, I'm a novice that does a lot of cut and 
pasting when it comes to actual code, though I understand the 
environment well enough to tell other people what to do :)

Matt




Matt wrote:

    
Oops :)

Scott Heath wrote:

      
Matt,
Is Server.Redirect(") the same thing as Response.Redirect(")? I've never heard of Server.Redirect.

---------- Original Message ----------------------------------
From: Matt <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date:  Thu, 15 Jan 2004 12:53:16 -0500

 

        
In the ASP file that is used as an image, you would throw in a 
Server.Redirect statement to a real image at the bottom of the script.

Matt



Scott Heath wrote:

   

          
To add to this suggestion, make your ASP file Write what ever data you want to a database. The ultimate in log processing, writing queries against it etc. Find out who uses webmsg the most etc.

My only question is if you put img src="" what would it display there? And would it pull/process the ASP file? I seem to remember trying this with KWM (making the domain name apear at the bottom) and it didn't work, I dont think webmsg processes asp files like IIS. 

---------- Original Message ----------------------------------
From: "Keith Pase" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date:  Thu, 15 Jan 2004 11:38:58 -0600



     

            
for access stats, you can add a mole (img src = "" ) using footers in the templates. if you wanted to, you can put in query strings (whatever.asp?domain=imaildomain)

look at the raw text web templates to figure out the format of sending query string text over to the "mole".  I use subdomains of the mail domain for reporting. You can batch file a massive search and replace on all the files (ultraedit, etc) for the closing body tag and just inject it before that.

I can even tell how many people on the domains access the help pages.

-k

This message is intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination,  distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please delete it and notify us immediately.


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Scott Huber
Sent: Thursday, January 15, 2004 10:59 AM
To: [EMAIL PROTECTED]
Subject: RE: [IMail Forum] Webmsg on IIS?


Well, I guess having IIS redirect to webmsg might be an option.  What would
the benefits be?  Security?  Improved performance of web? ???

My thoughts behind this were if IIS served up the pages, the web users would
not access the Imail server directly and I could get a more detailed audit
of access.  The webmsg logfile is ok, but I would think IIS could provide
more detail.


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Scott Heath 
Sent: Thursday, January 15, 2004 11:46 AM
To: [EMAIL PROTECTED]
Subject: Re: [IMail Forum] Webmsg on IIS?

Just to clarify...you want IIS to run webmsging? Not IIS to redirect to
webmsg right?

If thats the case then no, it can't be done to my knowledge. I would suggest
at looking at a 3rd party web mail system like EmuMail, or if your feeling
brave write one like webmsg only letting it run on an external box.

//thought twice about the below line//
Maybe this could be in future versions of imail? I can see where this would
definitly be a plus, not needed, but it would be cool.
The Other Scott

---------- Original Message ----------------------------------
From: "Scott Huber" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date:  Thu, 15 Jan 2004 11:37:11 -0500

  

       

              
Is it possible to run webmsg on an IIS server?  Ideally, I would have an
Extranet server in my DMZ running webmsg (as well as a few other websites)
and the Imail server would reside inside my private network.  Has anyone
    

         

                
had
  

       

              
success with this scenario?  All I can find in the archives pertain to
running IIS on the SAME server as Imail.



Thanks.

Scott





    

         

                
To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html
List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/
---
[This E-mail scanned for viruses by Declude Virus on the Orion Medical
Management IMail server]


---
[This E-mail scanned for viruses by Declude Virus on the Orion Medical Management IMail server]


----------------------------------

This message is intended for the use of the individual or entity to which it is addressed and may contain information that is confidential and privileged and exempt from disclosure under applicable law.  If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of the communication is strictly prohibited.  If you have received this communication in error, please contact the sender immediately and delete it from your system.  Thank you, Orion Medical Management Inc., Radiology Associates of Tampa.

This message has been scanned for viruses by Declude Virus on the Orion Medical Management Imail Server.

To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html
List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/


To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html
List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/

  

       

              
To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html
List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/




     

            
-- 
=====================================================
MailPure custom filters for Declude JunkMail Pro.
http://www.mailpure.com/software/
=====================================================



   

          
To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html
List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/


 

        
-- 
=====================================================
MailPure custom filters for Declude JunkMail Pro.
http://www.mailpure.com/software/
=====================================================

      
-- 
=====================================================
MailPure custom filters for Declude JunkMail Pro.
http://www.mailpure.com/software/
=====================================================



    

To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html
List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/


  

-- 
=====================================================
MailPure custom filters for Declude JunkMail Pro.
http://www.mailpure.com/software/
=====================================================

Reply via email to