Exchange mail: add attachments

Hi there,

Creating an Outlook mail and add attachments to it, I can get that to work.
But an Exchange mail gives me issues. I loop through a list of names and Invoke the TargetObject ExchangeMailMessage with the method ‘add’,

image

The ExchangeMailMessage is of variable type ‘Microsoft.Exchange.Webservice.Data.EmailMessage’.

Does anyone have a working example of adding more than 1 attachments to an exchange mail?

Thanks,

Edward