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.

Multiple Attachments with ScriptMaster

Featured Replies

  • Newbies

ScriptMaster offers the "Send Email with Attachments" function. The notes for the function says "Here is a more advanced script for sending email with attachments." But the input variables section only shows a single attachment path.

Can this SM function be used to send multiple attachments? Or is it limited in the same way that the native FMP "Send Email" function is?

Sorry if this Q has been answered before. It wasn't clear to me from the other threads if the poster was talking about the ScriptMaster function or the native function.

Thanks.

The function as it is can only send a single attachment. But it does show you how to perform all the elements required to compose an e-mail, with an attachment. If you were to modify the groovy code, you could make it send an e-mail with multiple attachments.

I think the biggest issue would be sending a variable number of parameters to the e-mail function. The easiest way would be something along the lines of a comma-delimited list of file's to attach. In the groovy code, you would need to parse this list, and attach each file.

Create an account or sign in to comment

Important Information

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

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.