Test SMTP connection

post

/ccadmin/v1/email/test

Tests the SMTP connection.

It attempts to connect to the configured SMTP service. The only response this endpoint returns is a JSON object containing a success field, which has a value of true or false depending on the outcome of the test.

It returns true for a successful connection or false for an unsuccessful connection.

Note:This endpoint will always return a 200 OK Response. The only difference is the value, true or false.

Request

Supported Media Types
Body ()
Root Schema : testSmtpConnection_request
Type: object
Show Source
Example:
{
    "emailSMTPPort":"587",
    "emailSMTPHost":"smtp.example.com",
    "emailSMTPAuthMethod":"TLS",
    "emailSMTPPassword":"example",
    "emailSMTPUsername":"example@example.com"
}
Back to Top

Response

Supported Media Types

200 Response

Returned when the attempt to connect is complete. It can be either true or false.
Body ()
Root Schema : testSmtpConnection_response
Type: object
Show Source
Example Response (application/json)
{
    "success":true
}

Default Response

The error
Body ()
Root Schema : errorModel
Type: object
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top