How to add specific email attachment when send out many emails?

I need to send 20 emails, each with a dedicated attachment. All my attachments are placed in a folder , I set attachments as variables. I used the following assign to add attachments, but they always fail to added attachment. How can I modify them?

Hi @sunny.zhang

Give it like this:

SlideAttachmentPath+"\"+CourseName+".ics"

You fogot the "\" in between folder name and file name.

Thanks for your kindly help.
I changed like this, But it shows error like below

image

@sunny.zhang Just put one back slash in SlideAttacment Variable value and Try again.

@sunny.zhang

Check once by printing file name, file path and Slide Attachment variable and verify if its getting correctly or not.

SlideAttachmentPath.ToString+"\"+CourseName.ToString+".ics"

If you are getting file name including file type then no need to add file type here.

Thanks for your help, My problem solved, Thanks

1 Like