跳到主要内容

Reset the SMTP settings

DELETE /api/2.0/settings/smtp

Resets SMTP settings of the current portal.

Returns​

Default SMTP settings. A request that is not authenticated returns 401.

Host​

type: string

Example: "mail.example.com"

Port​

type: integer[]

SenderAddress​

type: string

Example: "notify@example.com"

SenderDisplayName​

type: string

Example: "Postman"

CredentialsUserName​

type: string

Example: "notify@example.com"

CredentialsUserPassword​

type: string

Example: "{password}"

EnableSSL​

type: boolean

Example: false

EnableAuth​

type: boolean

Example: true

UseNtlm​

type: boolean

Example: true

Response example​

{
"Host": "mail.example.com",
"Port": [
25
],
"SenderAddress": "notify@example.com",
"SenderDisplayName": "Postman",
"CredentialsUserName": "notify@example.com",
"CredentialsUserPassword": "{password}",
"EnableSSL": false,
"EnableAuth": true,
"UseNtlm": true
}