Test mail server config
Headers
-
TARGET-ORGANIZATION-ID integer(int32)
ID of organization, for which the operation must be performed
-
API token (can be retrieved from account settings)
POST
/api-v1/mail-server/test-connection
curl \
-X POST http://wyzio.app/api-v1/mail-server/test-connection \
-H "TARGET-ORGANIZATION-ID: 42" \
-H "WEAL-TOKEN: string" \
-d '{"fromEmail":"string","host":"string","id":42,"password":"string","port":42,"secureConnectionType":"TLS","useAuth":true,"userName":"string"}'
Request examples
# Headers
TARGET-ORGANIZATION-ID: 42
WEAL-TOKEN: string
# Payload
{
"fromEmail": "string",
"host": "string",
"id": 42,
"password": "string",
"port": 42,
"secureConnectionType": "TLS",
"useAuth": true,
"userName": "string"
}
Response examples (200)
{
"errorType": "VALIDATION_ERROR",
"isSuccessful": true,
"message": "string"
}