Skip to main content

preview_email_template

Function preview_email_template 

Source
async fn preview_email_template(
    email_template_id: Path<Uuid>,
    payload: Json<EmailTemplatePreviewRequest>,
    pool: Data<PgPool>,
    app_conf: Data<ApplicationConfiguration>,
    user: AuthUser,
) -> ControllerResult<Json<EmailTemplatePreview>>
Expand description

POST /api/v0/cms/email-templates/:id/preview

Renders the editor’s unsaved state exactly as the sender would, with sample placeholder values.