Skip to content

Set SMTP

POST
/api/settings/test_smtp

Set SMTP settings and send a test email. Admin role is required.

Authorizations

bearerAuth

Bearer token using a JWT

Type
HTTP (Bearer)

Request Body

application/json
JSON
{
  
"auth": {
  
  
"user": "smtp@gancio.org",
  
  
"pass": "password"
  
},
  
"port": 465,
  
"from": "admin@gancio.org",
  
"sendmail": false,
  
"secure": true,
  
"ignoreTLS": false,
  
"requireTLS": true
}

Responses

SMTP setting set and test email sent.

Playground

Authorization
Body

Samples

Powered by VitePress OpenAPI