# MailCreateDraft

### Summary

* Creates a draft email to edit or send later.

### Graph Endpoint

* `POST /me/messages`

### Parameters

#### Optional

* `to: string[]`, `cc: string[]`, `bcc: string[]`
* `subject: string`, `body: string`
* `bodyContentType: 'Text'|'HTML'`

### Usage (app.businessFunction)

#### Minimal

```js
app.businessFunction({
  functionName: 'MicrosoftGraph',
  methodName: 'Mail',
  operation: 'CreateDraft',
  parameters: {
    subject: 'Draft subject'
  }
})
```

#### With recipients and body

```js
app.businessFunction({
  functionName: 'MicrosoftGraph',
  methodName: 'Mail',
  operation: 'CreateDraft',
  parameters: {
    to: ['adelev@contoso.com'],
    subject: 'Proposal',
    body: '<p>See attached...</p>',
    bodyContentType: 'HTML'
  }
})
```

### Response

```json
{ "ok": true, "id": "AAMkAGI2N..." }
```
