If you get an mail message with attachments having the same name and you use SaveAttachments Activity then only the last one (attachment) will be saved the in file system. Any decisions?
Do a check to see if the email contains multiple files with the same name, if it does then when you save the attachment can you add on an incremental integer to the end of the filename? that way you shouldn’t get any conflicts.
I would suggest you to rename the file while saving the attachment.
Refer this link . This might be useful. Thanks
Thanks. I used “attachment.Name” (where attachment is System.Net.Mail.MailAttachment) property to change an attachment name before the saving.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.