Get Started
Usage API
More information

PUT api/2.0/mail/messages/send This function requires authentication

Description

Sends a message with the ID specified in the request.

Parameters
Name Description Type Example
id
sent in body
Message ID which will be sent or 0 number 1234
from
sent in body
Mail address from which a letter will be sent. Format: Name <name@domain> string some text
to
sent in body
List of mail addresses to which a letter will be sent. Format: Name <name@domain> System.Collections.Generic.List`1[System.String]
cc
sent in body
List of "cc" mail addresses. Format: Name <name@domain> System.Collections.Generic.List`1[System.String]
bcc
sent in body
List of "bcc" mail addresses. Format: Name <name@domain> System.Collections.Generic.List`1[System.String]
mimeReplyToId
sent in body
Message ID to which this message replies string some text
importance
sent in body
Important message or not: true - important, false - not important Bool value true
subject
sent in body
Message subject string some text
tags
sent in body
List of tag IDs added to the message System.Collections.Generic.List`1[System.Int32]
body
sent in body
Message body as HTML string string some text
attachments
sent in body
List of message attachments
fileLinksShareMode
sent in body
Share mode for the links of attached files None, ReadWrite, Read, Restrict, Varies, Review, Comment, FillForms, CustomFilter
calendarIcs
sent in body
Calendar event in the iCal format for sending string some text
isAutoreply
sent in body
Specifies that this message is autoreply or not Bool value true
requestReceipt
sent in body
Adds a request with the Return-Receipt-To header
optional
Bool value true
requestRead
sent in body
Adds a request with the Disposition-Notification-To header
optional
Bool value true
Example
PUT api/2.0/mail/messages/send
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "id": 1234,
  "from": "some text",
  "to": [
    "some text"
  ],
  "cc": [
    "some text"
  ],
  "bcc": [
    "some text"
  ],
  "mimeReplyToId": "some text",
  "importance": true,
  "subject": "some text",
  "tags": [
    1234
  ],
  "body": "some text",
  "attachments": [],
  "fileLinksShareMode": "none",
  "calendarIcs": "some text",
  "isAutoreply": true,
  "requestReceipt": true,
  "requestRead": true
}
Returns

Message ID