philfeldman Posted February 4, 2007 Posted February 4, 2007 I have a container field that holds an MS Word document; other fields hold the email address, etc. I want to send that document in the container field as an attachment using my Entourage email client. I know I can export the contents of the container field to my desktop, but then I have to stop and attach that file to the email that now resides in the Drafts folder of Entourage. Not good when sending lots of emails... In other words, the email is created correctly with no problems. I just can't figure out how to append the attachment automatically. Thanks for your thinking on this one! Phil Feldman
Hans Jürgen Posted February 4, 2007 Posted February 4, 2007 (edited) The easiest (only?) way is to export the file at first. I normally use a Folder that is specified by the OS, (e. G. for MacOSX: User/Library/Application Support/application name) in Windows environments it's something like "own files...." (I don't know the english expression). When starting any of my solutions, I check for the presence of this folder and create it if neccessary. The path is stored in a global variable that I call $$_document_path and that reused everytime it's needed. In scripts you are able to merge e.g. a filename with that variable to a full path and create a local variable e.g. $_document_temp. Export the document and attach it to your mail with the same variable. I appended a small, quick and dirty example for you. The document path in this example is the Desktop. Normally you you have to clean up afterwards, by using some shell commands. The example works with Mac and is not tested with windows. But i hope it points you into the right direction. EMailDokument.fp7.zip Edited February 5, 2007 by Guest
philfeldman Posted February 4, 2007 Author Posted February 4, 2007 Hans, Your solution worked perfectly! Thanks so much. You saved me many MANY hours of work! Phil Feldman
Recommended Posts
This topic is 6494 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now