12-01-22 03:44 PM
Answered! Go to Answer.
12-01-22 04:58 PM
{
"message": {
"subject": "[Subject]",
"body": {
"contentType": "[Email Body Content Type]",
"content": "[Email Body Content]"
},
"toRecipients": [
{
"emailAddress": {
"address": "[Email Address]"
}
}
],
"ccRecipients": [
{
"emailAddress": {
"address": "[Email Address]"
}
}
],
"attachments": [
{
"@odata.type": "#microsoft.graph.fileAttachment",
"name": "[Attachment Name]",
"contentType": "[Attachment Content Type]",
"contentBytes": "[Attachment Contents]"
}
]
},
"saveToSentItems": "[Save to Sent Items Folder]"
}
I believe Microsoft expect to see the recipient information before any attachment sections.
And here's a screenshot of how I set up the input parameters:
Cheers,
Eric
12-01-22 04:58 PM
{
"message": {
"subject": "[Subject]",
"body": {
"contentType": "[Email Body Content Type]",
"content": "[Email Body Content]"
},
"toRecipients": [
{
"emailAddress": {
"address": "[Email Address]"
}
}
],
"ccRecipients": [
{
"emailAddress": {
"address": "[Email Address]"
}
}
],
"attachments": [
{
"@odata.type": "#microsoft.graph.fileAttachment",
"name": "[Attachment Name]",
"contentType": "[Attachment Content Type]",
"contentBytes": "[Attachment Contents]"
}
]
},
"saveToSentItems": "[Save to Sent Items Folder]"
}
I believe Microsoft expect to see the recipient information before any attachment sections.
And here's a screenshot of how I set up the input parameters:
Cheers,
Eric
13-01-22 08:04 AM
08-07-22 03:09 PM
"contentType": "[Attachment Content Type]",
"contentBytes": "[Attachment Contents]"
Do I need some code to get the contentBytes of an attachment?
Also, is this api can upload attachment of more than 4MB size?
Thanks in advance 🙂
08-07-22 10:07 PM