Send a test email
POST
/v1/settings/test/smtp
const url = 'http://localhost:8080/v1/settings/test/smtp';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"recipient":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8080/v1/settings/test/smtp \ --header 'Content-Type: application/json' \ --data '{ "recipient": "example" }'Sends a real message to recipient through the configured SMTP relay and reports whether the relay accepted it; the outcome updates the wizard flag setup.smtp_tested, which activation requires. Administrators only.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
recipient
string
Examplegenerated
{ "recipient": "example"}Responses
Section titled “Responses”OK
Media typeapplication/json
object
accepted
required
boolean
detail
required
string
Examplegenerated
{ "accepted": true, "detail": "example"}