So basically i am trying to send multiple attachment at once using the SMTP Send Mail.
Just for a note i am using 2.1.20 UiPath.Mail.Activities
So i checked with both List and Array with assign activity
AttachmentList = new List(Of String)
AttachmentArray = Directory.GetFiles(FolderPath)
Data type is attached
Whenever i input the attachments field it gave me an error
“Argument ‘ResourceAttachments’: BC36754: ‘String()’ cannot be converted to ‘IEnumerable(Of IResource)’ because ‘String’ is not derived from ‘IResource’, as required for the ‘Out’ generic parameter ‘T’ in ‘Interface IEnumerable(Of Out T)’. The selected value is incompatible with the property type.”
the same is happening with List
“Argument ‘ResourceAttachments’: BC36754: ‘List(Of String)’ cannot be converted to ‘IEnumerable(Of IResource)’ because ‘String’ is not derived from ‘IResource’, as required for the ‘Out’ generic parameter ‘T’ in ‘Interface IEnumerable(Of Out T)’. The selected value is incompatible with the property type.”