locked
Attach if file exists RRS feed

  • Question

  • Hi everyone,

    I am using script task to send an email that could have 2 attachments; File A and File B.

    Currently, it is sending email only when both files exists. However, there are instances when only one file will be available and I want the mail to send only one attachment.

    I created 2 variables for each of the files and use to attach them separately

    email.Attachments.Add(FileA)
    email.Attachments.Add(FileB)

    Can some advise what I am doing wrong.

    Thanks!


    me

    Tuesday, August 4, 2020 10:57 PM

All replies