Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help in writing the following Outlook script

Status
Not open for further replies.

thelordoftherings

Programmer
May 16, 2004
616
IL
Hello,

I am writing an outlook script which receives Item As Outlook.MailItem parameter.
I'm new to this and I would like to create the following procedure when the messege arrives, assuming the messege always arrive with one file:
1. Check the extention of the file, only if it is a .doc file proceed to the next steps.
2. Save the attachment from Outlook.MailItem to a certain directory.
3. Reply to the sender with a different file located on a certain directory.
4. Permanently delete the messege from the server.

Can anyone please help me writing this procedure.
 
And what have you tried so far ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Dear PHV,

Well, I actually did it all already!
One issue left though: When I do step 3 (Reply to the sender) I receive an outlook messege that "A program is trying to access email addresses stored in Otlook" And "A program is trying to automatically send email on your behalf" and I need to approve these messeges.
How can I disable this warnings?

Regards,
Roy
 
Do a google search for outlook object model guard

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top