Skip to main content

send_test_email

Function send_test_email 

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

POST /api/v0/cms/email-templates/:id/send-test

Queues the editor’s unsaved state, with sample placeholder values, to the requesting user’s own address. Returns the id of the queued delivery.