message: send

Namespace: microsoft.graph

Send an existing draft message.

The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft.

This method saves the message in the Sent Items folder.

Alternatively, send a new message in a single operation.

This API is available in the following national cloud deployments.

Global service US Government L4 US Government L5 (DOD) China operated by 21Vianet

Permissions

Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.

Permission type Least privileged permissions Higher privileged permissions
Delegated (work or school account) Mail.Send Not available.
Delegated (personal Microsoft account) Mail.Send Not available.
Application Mail.Send Not available.

HTTP request

POST /me/messages/{id}/send
POST /users/{id | userPrincipalName}/messages/{id}/send

Request headers

Name Type Description
Authorization string Bearer {token}. Required.
Content-Length number 0. Required.

Request body

Since this method sends an already existing draft message, specifying a request body is not necessary.

Response

If successful, this method returns 202 Accepted response code. It doesn't return anything in the response body.

Examples

Example 1: Send an existing draft message

The following example shows how to call this API.

Request

The following example shows a request.

POST https://graph.microsoft.com/v1.0/me/messages/{id}/send
Response

The following example shows the response.

HTTP/1.1 202 Accepted