PUT api/2.0/mail/messages/send
Sends a message with the ID specified in the request.
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>
|
Collection of strings
|
some text
|
cc
sent in body
|
List of Cc (carbon copy) mail addresses. Format: Name <name@domain>
|
Collection of strings
|
some text
|
bcc
sent in body
|
List of Bcc (blind carbon copy) mail addresses. Format: Name <name@domain>
|
Collection of strings
|
some text
|
mimeReplyToId
sent in body
|
Message ID to which this message is replying to
|
string
|
some text
|
importance
sent in body
|
Specifies if this message is important 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{System.Int32}
|
|
body
sent in body
|
Message body as the HTML string
|
string
|
some text
|
attachments
sent in body
|
List of message attachments
|
System.Collections.Generic.List{ASC.Mail.Data.Contracts.MailAttachmentData}
|
|
fileLinksShareMode
sent in body
|
Sharing mode for the links of the attached files
|
None, ReadWrite, Read, Restrict, Varies, Review, Comment, FillForms, CustomFilter,
|
true
|
calendarIcs
sent in body
|
Calendar event in the iCal format for sending
|
string
|
some text
|
isAutoreply
sent in body
|
Specifies if this message is autoreply or not
|
Bool value
|
true
|
requestReceipt
sent in body
|
Specifies whether to add a request with the Return-Receipt-To header or not
optional
|
Bool value
|
true
|
requestRead
sent in body
|
Specifies whether to add a request with the Disposition-Notification-To header or not
optional
|
Bool value
|
true
|
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": [
{
"fileId": 1234,
"fileName": "fileName",
"size": 1234,
"contentType": "contentType",
"needSaveToTemp": true,
"contentId": "contentId",
"fileNumber": 333,
"storedName": "storedName",
"streamId": "streamId",
"savedToMyDocuments": true,
"tempStoredUrl": "tempStoredUrl"
}
],
"fileLinksShareMode": true,
"calendarIcs": "some text",
"isAutoreply": true,
"requestReceipt": true,
"requestRead": true
}