(i'm at a cross as i think this post should be in html and templates...)
Okay, to clarify, you are wanting an hfs template script that will allow you to select files on the html side, that will then "zip" the files and add them to an attachment to be emailed out???
---
hmmm,
To do this, you either have to have all the possible combination of the files "zipped" (which will take up space)
Or
have a separate batch that will run to get the "files ready to be emailed"
---
Then only way i logical see this working (at least to me, there are plenty of other ways...) is to have a snpt client(email program) on your hfs machine. In which the hfs machine will be sending emails out...
The hfs machine (in a template) would run a script (suchas 7 zip which would zip the files selected in the html via string variables...) and put the zipped files in a real folder on your hfs
(then you can add passwords to the zipped folders/ or have them go to that link and setup a deletion period / or setup a script that would open an email client using you snmpt and send the zip via a program.)
once you have successfully have a template that will zip files and place them in a location (with a deletion period) it then comes down how you want the client users to obtain a zipped file...
----
I will not give you the code, nor help you program it, but i will give you a tool that might help.
Download 7zip portable program:
http://sourceforge.net/projects/sevenzip/files/7-Zip/4.42/7za442.zip/download?use_mirror=softlayer-dal&download=You will need these files in your "c:\windows\system32\"
So you will be able to call a directory with a zip command such as
http://www.dotnetperls.com/7-zip-examplesbatch---
7z (info from switches form above link...)
---
Form there you should be able to put something together...
And/or a more experienced user on the rarw side can help...