Test sending an email message

This endpoint allows you to send a test email using the configured SMTP integration settings. It is used to verify that the provided SMTP credentials (such as host, port, username, and password) are working correctly and can be used to send emails.

Use this endpoint to ensure that your SMTP integration is properly set up before enabling real transactional or notification emails in your application.

Test sending an email message

post
Header parameters
Brand-URLstringRequired

The brand URL of the request. This is used to identify the brand.

Example: YOUR_BRAND_URL
Auth-KeystringRequired

Auth-Key is required to authenticate the request. If missing, the server will return 401 Unauthorized.

Example: YOUR_AUTH_KEY
Body
hoststring · min: 1Required

The SMTP server hostname or IP (e.g., smtp.gmail.com).

portinteger · int32Required

The port number for the SMTP server (typically 587 or 465).

usernamestring · min: 1Required

The username/email address for SMTP authentication.

passwordstring · min: 1Required

The password for SMTP authentication.

useTlsbooleanRequired

Whether to enable SSL for SMTP connection.

emailAddressFromstring · min: 1Required

The sender email address.

emailAddressTostring · min: 1Required

The recipient email address.

subjectstring · min: 1Required

The subject of the test email.

bodystring · min: 1Required

The body content of the test email.

Responses
chevron-right
200

The request was successful.

application/json

This provides interfaces for API responses with data.

successbooleanRead-onlyRequired

This is the flag to indicate whether the API call is successful or not.

statusCodeinteger · int32Read-onlyRequired

This is the HTTP status code. This is used to determine the status code to be returned to the client.

messagestring · min: 1Read-onlyRequired

This is the message to be displayed to the user.

databooleanRead-onlyOptional

This is the data to be returned to the client.

post
/api/v1/app-integrations/smtp/test

Last updated