Jump to content

Multiple Attachments with ScriptMaster


This topic is 4826 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • 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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This topic is 4826 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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