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

This is used to authenticate the request. If the request is not authenticated, the server will return a 401 Unauthorized response.

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
200

The request was successful.

application/json
post
POST /api/v1/app-integrations/smtp/test HTTP/1.1
Host: protocol.jframework.io
Brand-URL: text
Auth-Key: text
Content-Type: application/json
Accept: */*
Content-Length: 155

{
  "host": "text",
  "port": 1,
  "username": "text",
  "password": "text",
  "useTls": true,
  "emailAddressFrom": "text",
  "emailAddressTo": "text",
  "subject": "text",
  "body": "text"
}
{
  "success": true,
  "statusCode": 200,
  "message": "The request was successful.",
  "data": true,
  "errors": []
}

Last updated

Was this helpful?