Email with Multiple Attachments using Graph API (>4 MB)
问题 I'm using Microsoft-Graph API version 1.4 and trying to send mail with multiple attachments (with size greater then 4MB) using following code.. val address = EmailAddress() address.address = "vivek@domain.com" val recipient = Recipient() recipient.emailAddress = address val message = MyMessage() message.subject = "Test E-Mail" message.body = getItemBody() message.toRecipients = Collections.singletonList(recipient) val att = FileAttachment() att.contentBytes = File("/home/user/file.pdf")