POST api/graph-email/send
Request Information
URI Parameters
None.
Body Parameters
GraphEmailRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| ToRecipients | string |
Required |
|
| CcRecipients | string |
None. |
|
| BccRecipients | string |
None. |
|
| Subject | string |
Required String length: inclusive between 0 and 998 |
|
| Body | string |
Required |
|
| IsHtml | boolean |
None. |
|
| SenderEmail | string |
None. |
|
| Attachments | Collection of GraphEmailFileAttachment |
None. |
Request Formats
application/json, text/json
Sample:
{
"ToRecipients": "sample string 1",
"CcRecipients": "sample string 2",
"BccRecipients": "sample string 3",
"Subject": "sample string 4",
"Body": "sample string 5",
"IsHtml": true,
"SenderEmail": "sample string 7",
"Attachments": [
{
"FileName": "sample string 1",
"ContentType": "sample string 2",
"ContentBytes": "QEA="
},
{
"FileName": "sample string 1",
"ContentType": "sample string 2",
"ContentBytes": "QEA="
}
]
}
application/xml, text/xml
Sample:
<GraphEmailRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TAG.Api.Models">
<Attachments>
<GraphEmailFileAttachment>
<ContentBytes>QEA=</ContentBytes>
<ContentType>sample string 2</ContentType>
<FileName>sample string 1</FileName>
</GraphEmailFileAttachment>
<GraphEmailFileAttachment>
<ContentBytes>QEA=</ContentBytes>
<ContentType>sample string 2</ContentType>
<FileName>sample string 1</FileName>
</GraphEmailFileAttachment>
</Attachments>
<BccRecipients>sample string 3</BccRecipients>
<Body>sample string 5</Body>
<CcRecipients>sample string 2</CcRecipients>
<IsHtml>true</IsHtml>
<SenderEmail>sample string 7</SenderEmail>
<Subject>sample string 4</Subject>
<ToRecipients>sample string 1</ToRecipients>
</GraphEmailRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.