Newbies davemave Posted March 23, 2007 Newbies Posted March 23, 2007 Hi, anybody know how to email multiple attachments? (I work on Filemaker 8 Pro Advance, Mac OSx 10.4.8) In my first step I was able to send one attachment and info, then by another script I tryied to send multiple infos and attachments, I think I've done everything right, and it send the infos correctly but it doesn't attach any file, my script something like this below: any advice? thx, david Set Variable [$attachment_list; Value:""] Set Variable [$email_body; Value:""] Go to Record [First] # than by a loop I update my variables Loop Set Variable [$attachment_list; Value:$attachment_list &¶& "file:../any path to my file/":"] Set Variable [$email_body; Value:$email_body & ¶ & ¶ & any fields] Go to Record [Next] End Loop Send Mail [To:"";Message:$email_body;;"$attachment_list"] (### so at the exit of the loop my $attachment_list value is something like: file:../any/path/to/my/file_1: file:../any/path/to/my/file_2: file:../any/path/to/my/file_x: )####
mr_vodka Posted March 23, 2007 Posted March 23, 2007 Multiple attachments are not supported. You will have to use a plugin such as the mail.it plugin from dacons.net or SMTPit from CNS. Old Thread
Newbies davemave Posted March 23, 2007 Author Newbies Posted March 23, 2007 thx, vodka ! i was supposing that.... -( but to remain plugin-free, do you think,could applescript be helpful...have you got any experience with this possibly solution?... any pre-compiled applescript?
Fenton Posted March 23, 2007 Posted March 23, 2007 Or you can use AppleScript with your email application. The following is for Apple Mail. It reads a return-separated file list from a FileMaker text field to get the attachments, then places them at the end of the email (side-by-side; not sure how to insert a return between them; anyone?). Right now I have put 2 files in the attachments. Obviously you'd want to change those to your own files. I also have it only set to save the email in the Drafts folder, not send it. Just switch the commenting of the 2 steps near the end to send it immediately. Instead of: save newMessage -- send newMessage -- save newMessage send newMessage I put the AppleScript in FileMaker, but also included the original script from Script Editor, so you can read it better. It's extra, not needed to run. Mail_wAttachments.zip
Newbies davemave Posted March 23, 2007 Author Newbies Posted March 23, 2007 Hi Fenton, thx really alot!!! that's wath I was looking for!!! -) I would need some extra advice to get this applescript perfect 4 my needs: Let's say I have a text field in Filemaker field called "XYZ" to copy into the email. I'd need to alternate my text XYZ to the attachments so that in the email body I'll have something like this: XYZ_1 attachment_1 XYZ_2 attachment_2 XYZ_3 attachment_3 ....ecc, ecc.. could you give me some advice to modify this applescript 4 my needs ? thx alot in advance, ciao,david
Fenton Posted March 24, 2007 Posted March 24, 2007 I was not able to do that. After you create one attachment at the end, I cannot figure how to add text, then another attachment afterwards. You can get the code to run without an error, but it does not work. Perhaps someone can figure it. It seems that it must be possible, since you can easily do this manually.
Recommended Posts
This topic is 6797 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