|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Autoreply and sawing attachmnet by script VBSHi,
I have to develop some Exchange 2003 features. 1) I would like to generate an answer to every mail reaching a mailbox. 2) All the attachments should be written in a target network share Can somebody help me ? Number 1 could be done with a Rule using rule.dll which wouldn't require any
residual code or you could do both using a Exchange Store Event Sink the Exchange SDK has information on using Exchange Store Event sinks do a search for onsave and onsyncsave there also a good introduction to sinks on http://blogs.msdn.com/mstehle/archive/2006/01/17/514019.aspx. To download an Attachment within a Event sink you can use some simple CDOEX like savepath = "c:\temp\" Set msgobj = CreateObject("CDO.Message") msgobj.DataSource.Open bstrURLItem For Each objAttachment In msgobj.Attachments savefile = savepath savefile = savefile & objAttachment.filename objAttachment.SaveToFile savefile next set msgobj = nothing Cheers Glen Show quote "news" <Adriank***@wp.pl> wrote in message news:OCBHt%23MlHHA.3496@TK2MSFTNGP03.phx.gbl... > Hi, > I have to develop some Exchange 2003 features. > 1) I would like to generate an answer to every mail reaching a mailbox. > 2) All the attachments should be written in a target network share > > Can somebody help me ? > > |
|||||||||||||||||||||||