Rhett,

Here you go :) Just cut and paste. Read the six lines of comment.

Mike


---------------------------------------------------------------
'
'Get the IISSample.RegistryAccess component here:
'http://www.microsoft.com/ntserver/nts/downloads/archive/IISRegistryAccess/d
efault.asp
'
'You might have to register the component manually
'C:\>regsvr32 \winnt\system32\reg.dll
'
' Set KeyName below to the path of the counter
' you wish to retrieve
'

Dim KeyName
Dim CounterValue
Dim Registry
Dim objEmail

KeyName = "HKEY_LOCAL_MACHINE\Software\Ipswitch\IMail\Global\InstOptions"

Set Registry = Server.CreateObject("IISSample.RegistryAccess")
  CounterValue = Registry.Get( KeyName )
Set Registry = Nothing

Set objEmail = CreateObject("CDO.Message")
  objEmail.From = "[EMAIL PROTECTED]"
  objEmail.To = "[EMAIL PROTECTED]"
  objEmail.Subject = "Counter Values"
  objEmail.Textbody = "Counter Values: " & CounterValue
  objEmail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/confi
guration/sendusing") = 2
  objEmail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/confi
guration/smtpserver") = "smtp.YourDomain.com"
  objEmail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/confi
guration/smtpserverport") = 25
  objEmail.Configuration.Fields.Update
  objEmail.Send
Set objEmail = Nothing
---------------------------------------------------------------

----- Original Message -----
From: "Rhett Spencer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 02, 2003 1:20 PM
Subject: RE: [IMail Forum] IMail Daily Report


> ok i am not too good at this so i have a nice crisp $20.00  for a
> good working script that i can schedule to run and have it email me
> the counters.
>
> Rhett
>
> On 2 Oct 2003 at 10:48, Jay Sudowski - Handy Networks wrote:
>
> Subject:        RE: [IMail Forum] IMail Daily Report
> Date sent:      Thu, 2 Oct 2003 10:48:28 -0600
> From:           "Jay Sudowski - Handy Networks, LLC"
<[EMAIL PROTECTED]>
> To:             <[EMAIL PROTECTED]>
> Send reply to:  [EMAIL PROTECTED]
>
> If this is the case, then it should be fairly easy to write some sort
> of VBScript that will extract the values and email them to a
> specified
> address.
>
> -Jay
>
> -----Original Message-----
> From: Tripp Allen [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 02, 2003 12:28 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [IMail Forum] IMail Daily Report
>
> You can't make it run every four hours.  The ongoing counts are
> stored
> in the registry, you can look at them there.
>
> Tripp
>
> ----- Original Message -----
> From: "Rhett Spencer" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, October 02, 2003 11:36 AM
> Subject: [IMail Forum] IMail Daily Report
>
>
> > Hello Group,
> >
> > does anyone know how we can have the IMail Daily Report run say
> > every 4 hours.  this would give us a sort of speedometer of how the
> > system was running all day long.  we usually send out abount the
> > same amount of email a day plus or minus 3000 but when i come in and
> > see 30,000 messages sent out then i know i have trouble.
> >
> > so if i had check count as the day went along i could stop any
> > spammers before it went too far.  i could also create a script to
> > look at theses messages and take some kind of action like page me
> > etc..
> >
> > thanks
> >
> > Rhett
> >
> >
> > 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/
>
>
> 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/

Reply via email to