Interop-MailSim
Interop-MailSim copied to clipboard
duplicated random attachments
- Create a set of attachment files, say Att1.txt through Att5.txt
- Create a MailSend operation with a RandomAttachments value of 5
- Create a sequence that calls that op 10 times
All the sent messages will have the correct number (5) of attachments. However, some of the messages will have duplicated attachments, where a given attachment file is included more than once.
Random attachments are selected by picking a "random" number from the specified range (in this case [0 - 4]). With a small range it's very likely the same number will be selected more than once.
If it's important for all attachments to be unique, better alternative might be an explicit set of attachments in the operation.