0

List of attachments in the sendEmail() function

Hi I have the following problem - I am trying to send a list of attachments in the sendEmail() function. Only unfortunately the files in the email can't be loaded. Does anyone have any idea what is causing this? Here is my code:
 

sendEmail({
        from: 'from:'.'email business',
        to: concat('Email Recipient'[type = 1].an),
        cc: concat('Email recipient'[type = 2].an),
        bcc: concat('E-mail recipient'[kind = 3].an),
        subject: subject,
        text: "test"
        attachments: for i in 'attachments' do
            file(i, i.'file name')
        end
    });

"attachments" is a list of multiple files

1 reply

null
    • mhsys
    • 1 yr ago
    • Reported - view

    attachments: files(this)