February 4, 200718 yr 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
February 4, 200718 yr 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, 200718 yr by Guest
February 4, 200718 yr Author Hans, Your solution worked perfectly! Thanks so much. You saved me many MANY hours of work! Phil Feldman
Create an account or sign in to comment