Skip to content
Advertisement

Send mail with multiple attachment using Graph API

I’m using Microsoft-Graph API version 1.4 and trying to send mail with attachment using following code..

JavaScript

Ref.Link: Graph-Send-Mail

But, message.attachments requires AttachmentCollectionPage object not LinkedList();

Can anyone help me to send a mail with multiple attachment.

Thanks

Advertisement

Answer

I found the solution to send multiple attachment in a single mail using 1.4.0 version. Checkout the following code…

JavaScript

The above code can be used to send multiple attachments with size less than 4 MB. To send above the limit please refer this.

Advertisement