Attachments in SMTP Mail

Hi ,

I want to attachment output file in Send SMTP Mail message. In the new activity , when I am trying to use the variable (file path+file name ) its throwing error .

@dutta.marina,

Instead of string variable, convert it to IResource. Pass below expression in Attachments

New FileSystemLocalItem("str_outFileName")

@ashokkarale

changed the variable to IResource

h

@dutta.marina,

Use this.

New List(Of IResource) From {LocalResource.FromPath(str_outFileName)}

@ashokkarale

There is some error.

@dutta.marina,

Check the datatype of str_outFileName. Looks like it’s datatype isn’t string. Change it to string and this should work.

@ashokkarale

changed to string.

but still error

image

@dutta.marina,

You are passing this as collection item. Assign this way.

IResource Attachments

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.