Welcome to HostingForumz.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

ISMTPOnArrival_OnArrival event not fire at all

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Related Topics:
IIS logfile monitoring - FindFirstChangeNotification does .. - Hi All, I've written an MFC that monitors files using the Windows API. This works quite nicely for (almost) all types of file, but seems to trip up on IIS log files. The loads the file but..

Custom Error page does not fire at all. - I have 2 problems with IIS and I thought I might as well post both at the same time (I have Win2000 Server & IIS):- 1. My Custom Error page does not fire at all. Its an ASP page so i used as the URL. The default error message still..

Not all AppPools fire events on recycle. Why? - We have few app pools set up and we wanted to configure them so that they all fire events when recycled. I can not figure out why some of them fire these events and why some don't. I even looked at the metadata file directly trying to figure out what's

Integrated Windows authentication and HTTP Proxy connectio.. - Hi, I read in microsoft that Windows does not work across HTTP proxy and Why is so? Is there any to make it work across HTTP proxy and Kindly help ..

ASP.Net Web Event ID: 1309 Event code: 3005 - Random I get following warning in my web page, but I do not now if I should ignore it ? Server is windows 2003 SP2 Event Type: Warning Event Source: ASP.NET Event Category: Web Event Event ID: 1309 Date: Time:
Author Message
yoelhor

External


Since: Oct 07, 2003
Posts: 1



(Msg. 1) Posted: Tue Oct 07, 2003 12:38 pm
Post subject: ISMTPOnArrival_OnArrival event not fire at all
Archived from groups: microsoft>public>inetserver>iis (more info?)

Hi,

I'm trying to implement an OnArrival sink on a SMTP server
with IIS 6
on Windows 2003. From the doc I got the
impression I can do this with the verison of IIS and SMTP
server that

When I send mail to this server, it appears in the Drop
folder, but the event never gets fired.

Please help! What am I doing wrong?

<SCRIPT LANGUAGE="VBScript">

Const cdoRunNextSink = 0
Const cdoSkipRemainingSinks = 1


Sub ISMTPOnArrival_OnArrival(ByVal Msg, EventStatus)

Dim fs
Set fs = CreateObject("Scripting.FileSystemObject")
Dim file
Set file = fs.OpenTextFile("d:\test.log", 8, True )
file.Write "From: " & Msg.From & vbCrLf
file.Write "To: " & Msg.To & vbCrLf
file.Write "Subject: " & Msg.Subject & vbCrLf & vbCrLf

EventStatus = cdoRunNextSink

End Sub
</SCRIPT>



This is my registry code:

cscript smtpreg.vbs /add 1 onarrival SMTPScriptingHost
CDO.SS_SMTPOnArrivalSink "mail from=*"
cscript smtpreg.vbs /setprop 1 onarrival SMTPScriptingHost
Sink ScriptName "d:\test.vbs"

Thanks,
yoel

 >> Stay informed about: ISMTPOnArrival_OnArrival event not fire at all 
Back to top
Login to vote
jmaltz

External


Since: Aug 22, 2003
Posts: 710



(Msg. 2) Posted: Tue Oct 07, 2003 10:34 pm
Post subject: Re: ISMTPOnArrival_OnArrival event not fire at all [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Yoel,

Try microsoft.public.inetserver.iis.smtp_nntp, they'll probably have a
better idea of what's going on...

--
--Jonathan Maltz [Microsoft MVP - Windows Server]
<a style='text-decoration: underline;' href="http://www.imbored.biz" target="_blank">http://www.imbored.biz</a> - A Windows Server 2003 visual, step-by-step
tutorial site Smile
Only reply by newsgroup. If I see an email I didn't ask for, it will be
deleted without reading.


"Yoel Hor" <yoelhor DeleteThis @millenium.org.il> wrote in message
news:009001c38cf1$6df36320$a401280a@phx.gbl...
 > Hi,
 >
 > I'm trying to implement an OnArrival sink on a SMTP server
 > with IIS 6
 > on Windows 2003. From the doc I got the
 > impression I can do this with the verison of IIS and SMTP
 > server that
 >
 > When I send mail to this server, it appears in the Drop
 > folder, but the event never gets fired.
 >
 > Please help! What am I doing wrong?
 >
 > <SCRIPT LANGUAGE="VBScript">
 >
 > Const cdoRunNextSink = 0
 > Const cdoSkipRemainingSinks = 1
 >
 >
 > Sub ISMTPOnArrival_OnArrival(ByVal Msg, EventStatus)
 >
 > Dim fs
 > Set fs = CreateObject("Scripting.FileSystemObject")
 > Dim file
 > Set file = fs.OpenTextFile("d:\test.log", 8, True )
 > file.Write "From: " & Msg.From & vbCrLf
 > file.Write "To: " & Msg.To & vbCrLf
 > file.Write "Subject: " & Msg.Subject & vbCrLf & vbCrLf
 >
 > EventStatus = cdoRunNextSink
 >
 > End Sub
 > </SCRIPT>
 >
 >
 >
 > This is my registry code:
 >
 > cscript smtpreg.vbs /add 1 onarrival SMTPScriptingHost
 > CDO.SS_SMTPOnArrivalSink "mail from=*"
 > cscript smtpreg.vbs /setprop 1 onarrival SMTPScriptingHost
 > Sink ScriptName "d:\test.vbs"
 >
 > Thanks,
 > yoel<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: ISMTPOnArrival_OnArrival event not fire at all 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]