Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

email multiple attachments...or fm8 bug?

Featured Replies

  • Newbies

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:

)####

Picture_1.png

Picture_2.png

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

  • Author
  • Newbies

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?

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

  • Author
  • Newbies

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

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.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.