Send a test email using the project's saved SMTP config
Changed onSends a diagnostic email to to_email using the project's persisted auth_config SMTP credentials. If html_body or text_body is supplied, the override path is taken: those values (plus optional subject) are rendered through html/text templates against the project's Data and used as the body — used by the template editor's "Send Test" affordance to preview an unsaved template. With both bodies omitted, a hardcoded diagnostic message is sent and any subject field is ignored. Sending subject alone (no bodies) is rejected with 400 to avoid a silently-dropped subject or a blank message. Also rejects with 400 if email_enabled=false, smtp_host is empty, or the saved smtp_password can't be read and must be set again. Sender values with interior line breaks return 400 before SMTP delivery. Rendered override subjects containing a line break have outer whitespace trimmed; any remaining interior line break returns 400 before delivery.
Request
- Base URLhttps://api.volcano.dev
- Auth
- HTTP bearer
- or HTTP bearer
Path parameters
Project ID
Request body
When html_body or text_body is provided the backend renders those (plus optional subject) through html/text templates against the standard Data (ProjectName, Name, SiteURL) and sends the result — used by the template-editor "Send Test" affordance to preview an unsaved template. When both bodies are omitted a hardcoded diagnostic message is sent to verify SMTP credentials and subject is ignored. Sending subject alone (without a body) is rejected with 400.
Recipient address for the diagnostic email.
Optional subject override, rendered as a text/template. Only applied on the override path — requires html_body or text_body to also be set, otherwise the request is rejected with 400.
Optional HTML body override. Rendered as an html/template. Max 256 KiB.
Optional plain-text body override. Rendered as a text/template. Max 256 KiB.
Response
Test email sent
Changes
- info
the endpoint scheme security
ProjectAccessTokenwas added to the API
- info
- breaking
added the new path request parameter
id - breaking
added the new required request property
to_email
6 more changes in this revision
- breaking