Skip to content

Latest commit

 

History

History
127 lines (90 loc) · 4.04 KB

File metadata and controls

127 lines (90 loc) · 4.04 KB
title message: send
description Send an existing draft message.
ms.localizationpriority high
author SuryaLashmiS
ms.subservice outlook
doc_type apiPageType
ms.date 06/21/2024

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.

[!INCLUDE national-cloud-support]

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.

[!INCLUDE permissions-table]

HTTP request

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

Request headers

Name Type Description
Authorization string Bearer {token}. Required. Learn more about authentication and authorization.
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

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]


Response

The following example shows the response.

HTTP/1.1 202 Accepted