Form for outlook to reply attaching a file

Y

Yannis

Hi,
I am trying to have outlook to automatically respond to emails with specific
keywords in the subject and at the
same time attach a file from the hard drive. For example, if a user sends
an email with subject:
"Sales report" I would like to send the user back the appropriate file
automatically.

I used one of the standard message forms and added the file as an
attachment.
It works almost fine, but Outlook always emails the same version of the
file, although the file changes on the disk.

Is there a way to dynamically bind a file to a form? My experience with
forms in Outlook is very limited, so any pointers
will be very much welcomed!

thanks
Yannis
 
J

Jeff W

The same file is sent because you attached the file to the message.
Instead, use VBScript in the Item_Send event to dynamically attach the
file.

Item.Attachments.Add("C:\File.txt")

This will get the current version of the file.

Jeff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top