Send attachment by mail

hi all ,

i want to send one file as attachment by mail using Outlook send mail
the attachment option cant let me put the path its required var as ienumerable and this var contains all files in folder and i want a specific file to sent by giving the path

1 Like

Hi @Yazan_Otaibi ,
You can assign url file path to String eg: strFile
In send mail with attachment , you type strFile
Regards,
LNV

@Yazan_Otaibi

Add Attachments to IEnumerable of String:

Assign: attachments = {“C:\Path\To\file1.txt”, “C:\Path\To\file2.pdf”}

In this example, the attachments variable holds a collection of file paths (strings), which are then passed to the “Send Outlook Mail Message” activity as attachments. This allows you to attach specific files to the email without needing to attach all files from a folder.

1 Like

Hi,

Can you try to input as the following? (Please surround it by { }

Regards,

1 Like

hi @Yazan_Otaibi


provide it a variable and you can pass it or directly you can pass the path of the file

Hello @Yazan_Otaibi ,
You can Find the Attach Files option in the send Outlook Mail Activity, , In which you can Pass the path of the file that you want to send as In argument with the Type as String.
You can find the Screenshot below:

Please let me know if you have any Queries.
Regards;)

@rlgandu
thanks bro ,

@Yoichi ,
thanks bro;;

1 Like

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