Отправка одиночного письма
REST FULL API - EMAIL
Отправка одиночного письма
Этот метод API предназначен для отправки одного письма с дополнительными параметрами.

Этот запрос позволяет отправлять письма с текстовым и HTML-содержимым, а также при необходимости включать встроенные медиафайлы, такие как изображения или другие файлы, которые встраиваются непосредственно в тело письма для более насыщенного пользовательского опыта.
Чтобы отправить электронное письмо, выполните запрос по следующему URL:
PUT (POST) https://api.notificore.ru/email/send-emails
Параметры запроса:

Parameter

Required

Type

Description

to

Yes

array

A list of recipient email addresses.

from

Yes

string

The sender's email address.

subject

Yes

string

The subject line of the email.

body

Yes

string

The plain-text content of the email body.

htmlbody

Yes

string

The HTML-formatted content of the email body (can include rich text elements).

inlines

No

array

A list of inline attachments. Each inline item includes the following fields:

name

Yes

string

A variable representing the name or identifier of the inline attachment.

cid

Yes

string

The content identifier (links the inline attachment to the email body).

contentType

Yes

string

The content type (e.g., "image/png").

content

Yes

string

The base64-encoded content of the inline attachment.

Пример запроса:
{
 "to": [
   "user@example.com"
 ],
 "from": "user@example.com",
 "subject": "string",
 "body": "string",
 "htmlbody": "string",
 "inlines": [
   {
     "name": "string",
     "cid": "string",
     "contentType": "string",
     "content": "string"
   }
 ]
}
Параметры запроса:

Parameter

Type

Description

message_id

string

A unique identifier for the message sent.

Если запрос выполнен успешно, вы получите ответ:
{
 "message_id": "string"
}