Conditional attachments in sendmail function
I would like to have a hand-full of checkboxes that say "Invoice" , "Contract" , "File 1" , "File 2" etc.
And when each of the checkboxes are checked, I would like to add them as Attachments in a sendmail function like so
- sendmail
- (
- To : input.Client_Name.Email
- From : zoho.adminuserid
- Subject : input.Subject_field
- Message : input.Message
- Attachments : "all checked boxes"
- )
I tried creating a list with all of the boxes that are checked and inputing that list in the attachments like so
- list = {template: Invoice as PDF, file:input.lookup.file_string}
- sendmail
- (
- -
- -
- -
- Attachments : list
- )
But this doesnt work. Any ideas?