Test SMTP Connection – POST /SMTPSettings/testconnection



Test SMTP connection.

The ‘Manage System Settings’ permission is required to execute this API.

Usage:

  1. POST /SMTPSettings and create new SMTP settings
  2. POST /SMTPSettings/testconnection and test SMTP connection

URL

/cxrestapi/auth/SMTPSettings/testconnection

Method:

POST

Media Type (header):

Authorization: Bearer <access token value>
Content-Type: application/json;v=1.0

Parameters

testConnectionModel=[body]: Specifies the SMTP settings to test
receiverEmail=[string] - To field when receiving emails
password=[string] – Senders password
host=[string] - SMTP Server host
port=[integer] - port for sending emails
encryptionType=[string] - SMTP encryption type (SSL,TLS or None)
fromAddress=[string] - From field when sending emails
useDefaultCredentials=[string] – Whether SMTP communication is done via SSL (true/false)
username=[string] - Senders user name

Success Response:

Code: 200 Success

Error Response:

Code: 400 Bad Request
Code: 401 Unauthorized
Code: 403 Forbidden
Code: 404 Not Found

Sample Response:

no content

Notes:

Tests the SMTP connection. If the request fails, it returns an error response.




Send Documentation Feedback - If you have comments about this documentation, you can contact the documentation team by sending your feedback to usWe appreciate your feedback!