preview_mail
Read-only; changes nothing and sends nothing. Render a form's auto-reply against sample answers (key scope settings:read) and return the subject, the body and the sample used. Without subject / body it renders what is saved now; with them it previews a draft before update_settings saves it. Use it to show the user what the sender would receive.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | A draft body to preview (default: the saved one) | |
| form | Yes | The form key | |
| site | Yes | Site ID (the id from list_sites, e.g. "my-shop") | |
| subject | No | A draft subject to preview (default: the saved one) |