curl --request POST \
--url https://app.spotzee.com/api/ext/generic/email/smtp-email-test \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data hostname_ip=smtp.gmail.com \
--data port=587 \
--data security=tls \
--data username=user@example.com \
--data password=password123 \
--data from_email=sender@example.com \
--data to_email=recipient@example.com{
"status": "success",
"data": {
"connection": "success",
"details": {
"hostname": "<string>",
"port": 123,
"security": "<string>",
"response": "220 smtp.example.com ESMTP ready",
"features": [
"STARTTLS",
"AUTH LOGIN",
"AUTH PLAIN",
"SIZE 35882577"
]
},
"error": "<string>"
}
}Tests sending an actual email through an SMTP server with authentication. Validates server configuration, credentials, and email delivery capability.
curl --request POST \
--url https://app.spotzee.com/api/ext/generic/email/smtp-email-test \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data hostname_ip=smtp.gmail.com \
--data port=587 \
--data security=tls \
--data username=user@example.com \
--data password=password123 \
--data from_email=sender@example.com \
--data to_email=recipient@example.com{
"status": "success",
"data": {
"connection": "success",
"details": {
"hostname": "<string>",
"port": 123,
"security": "<string>",
"response": "220 smtp.example.com ESMTP ready",
"features": [
"STARTTLS",
"AUTH LOGIN",
"AUTH PLAIN",
"SIZE 35882577"
]
},
"error": "<string>"
}
}Bearer token authentication. Use format: Bearer YOUR_API_KEY
SMTP server hostname or IP address
"smtp.gmail.com"
SMTP server port number
1 <= x <= 65535587
SMTP security protocol
none, tls, ssl "tls"
SMTP authentication username
"user@example.com"
SMTP authentication password
"password123"
Sender email address
"sender@example.com"
Recipient email address
"recipient@example.com"
Successfully tested email sending
Indicates successful operation
success Hide child attributes
Connection test result
success Hide child attributes
Was this page helpful?