Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Forms / July 2004

Tip: Looking for answers? Try searching our database.

Form for outlook to reply attaching a file

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Yannis - 18 Jul 2004 03:36 GMT
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
Jeff W - 19 Jul 2004 14:38 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.