You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am adding strings to a list in a foreach loop.
And then I am iterating over that list so that I can add multiple files from file onto an e-mail.
The list holds the correct number of distinct file paths I would expect, but when added as attachments, it's just X copies of the same file. Even though I see that the collection is correctly iterated over.
Does AttachFromFileName not support iteration?
How would I add multiple attachments?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi!
I am adding strings to a list in a foreach loop.
And then I am iterating over that list so that I can add multiple files from file onto an e-mail.
The list holds the correct number of distinct file paths I would expect, but when added as attachments, it's just X copies of the same file. Even though I see that the collection is correctly iterated over.
Does AttachFromFileName not support iteration?
How would I add multiple attachments?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions