I hope someone can give me some guidence on what is the best way to compress email attachment files in order to send those files as a single attachments in a Send Mail (SMTP) script step? I know that "Send Mail" only supports a single file attachment, but I have logic in a script that needs to generate up to four individual files (a PDF from a record in a table and up to three other files in a container_field. I want to send the PDF and other three files in a single email but since Send Mail (SMTP) only supports a single file attachment, I have to first compress the files. I have been looking for a way to compress ("zip") the files from within a script but have not been able to find a way. Can anyone help me?
You could use a plugin for doing this (compression) sucha s Base Elements
Or using an apple script if you're using Mac OS X to compress folder but it needs many steps