Skip to content

send email with attachments #90

@davidmoten

Description

@davidmoten

I'd like to send an email with an attachment but it is unclear how to do so.

Here's a fragment from OutlookTests:

Message message = new Message();
message.subject = "Test E-Mail";
...
// how do i set attachments?
message.attachments = new AttachmentCollectionPage(response??, builder??);
// now add the attachments to the page
...
testBase.graphClient.me().sendMail(message, true).buildRequest().post();

In its current state the AttachmentCollectionPage object seems read-focused. How do I use it for write (or is this the wrong approach)?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions