Send a test email
Sends the template, rendered as the preview renders it, to the signed-in admin, and never to another address: the sample data comes from a real customer’s records. Takes the same body as the preview.
Authorizations
JWT token for admin user authentication
Headers
Bearer token for admin authentication
Path Parameters
The template key with dots
Body
A language code, or any (the default) for the version every language uses.
"any"
An unsaved subject, in place of the current one.
"Your order {{ order.number }} is confirmed"
An unsaved body, in place of the current one.
"<mj-section><mj-column><mj-text>Thanks, {{ order.customer_name }}!</mj-text></mj-column></mj-section>"
The record to build sample data from; the store's latest matching record otherwise.
"or_m3Rp9wXz"
For the layout or a partial, the email to show it in.
"spree.order_mailer.confirm_email"
Unsaved colors and font to preview, named like the store's email_* settings.
An unsaved email logo: the signed id of an uploaded image, or null to preview without one.
Response
test email queued

