Skip to product menu
Skip to main content

Send Email Using Draft

Purpose

This API is used to send email using the draft.

OAuth Scope

Use the scope

MailApps.messages.ALL (or) MailApps.messages.CREATE

ALL - Full access to messages.

CREATE - Send an email.

To generate Authtoken, refer here.

Request URL

Method : POST

https://mail360.zoho.com/api/accounts/{account_key}/drafts/{draftId}

Path Parameters

  • account_key* string
    • This is a unique key used to identify the account from which the draft has to be retrieved. It is generated during account addition.
    • This parameter can be retrieved using the Get All Accounts API.
  • draftId* long
    • This is the unique key to identifying a specific draft in the account.
    • This parameter can be retrieved using the Get all drafts API.

 

* - Mandatory parameter

Sample Request

Copiedcurl "https://mail360.zoho.com/api/accounts/N7A**0CM/drafts/167594940852211****" \
-X POST \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization:Zoho-oauthtoken ***" \

Sample Success Response

Copied{
   "status": {
      "code": 200,
      "description": "success"
   },
   "data": {
      "messageId": "1674571936262110001",
      "mailId": "rebecca@test.com"
   }
}

Sample Failure Response

Copied{
   "status": {
      "code": 500,
      "description": "Internal Error"
   },
   "data": {
      "moreInfo": "Internal Error"
   }
}