Skip to content

SetupConfigController_smtpTest

POST
/setup/v1/smtp/test
curl --request POST \
--url https://your-store.example.com/setup/v1/smtp/test \
--header 'Content-Type: application/json' \
--data '{ "host": "example", "port": 1, "secure": true, "user": "example", "pass": "example", "from": "example", "to": "hello@example.com" }'
Media type application/json
object
host
required
string
>= 1 characters <= 255 characters
port
required
integer
>= 1 <= 65535
secure
required
boolean
user
string
<= 255 characters
pass
string
<= 1024 characters
from
required
string
>= 3 characters <= 320 characters
to
required
string format: email
<= 320 characters /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/
Example generated
{
"host": "example",
"port": 1,
"secure": true,
"user": "example",
"pass": "example",
"from": "example",
"to": "hello@example.com"
}