{
"smtp_host": "smtp.qq.com",
"smtp_port": 587,
"smtp_user": "user@example.com",
"smtp_pass": "password123",
"smtp_ssl": "tls",
"smtp_from_email": "noreply@example.com",
"test_to_email": "test@example.com"
}
curl --location --request POST '/adminapi/system/config/testEmailSend' \
--header 'access-token: {{access-token}}' \
--header 'refresh-token: {{refresh-token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"smtp_host": "smtp.qq.com",
"smtp_port": 587,
"smtp_user": "user@example.com",
"smtp_pass": "password123",
"smtp_ssl": "tls",
"smtp_from_email": "noreply@example.com",
"test_to_email": "test@example.com"
}'
{
"code": 200,
"msg": "邮件发送成功"
}