> srcPath = "D:/ Mail_addaress /current_date"
> srcFiles <Array Of Strings> = System.IO.Directory.GetFiles(srcPath, "*.pdf")
Refer This post
So you can use Directory.GetFiles() to get all files in that folder, whether it’s one file or not, it will still give you a list of files. But, you can hardcode the index as 0 if you only want to do the first one it finds.
I don’t recommend using local locations for data storage, unless it’s strictly for attended. But, I’ll use your path as a variable. Example shown below:
srcPath = "D:/ Mail_addaress /current_date"
srcFiles <Array Of Strings> = System.IO.Directory.GetFiles(srcPath, "*…
You are asking about “Smtp send mail Activity”?
If it is so you can send multiple or even single attachment using mail collection of attachments.
For Further Assistance, Find an attachment sample and let me know in case of any doubt.
sample_smtp_mail_attachement.zip (8.4 KB)