Skip to content

ffl_core.api.marketing_mail

Source: apps/ffl_core/ffl_core/api/marketing_mail.py · 1 endpoint(s)

Generated by make api-docs — do not edit by hand.

send_test_email

POST /api/method/ffl_core.api.marketing_mail.send_test_email

Auth (derived from code): Roles: Sales Manager / System Manager

Queue a test marketing email for the signed-in staff member, at their own address.

It goes the way every marketing email goes: the mail queue from the marketing Email Account, the List-Unsubscribe headers, tracking as Marketing Settings has it, and a working unsubscribe link (using it unsubscribes this address, and the next test is refused until a manager puts it back). The mail queue sends it a moment later. Each call is its own campaign, so it can be queued again.

Returns: {"queued": true when it is in the mail queue, "email": the address, "status": that address's marketing status (a test is refused for an unsubscribed, bounced or complained one)}.

apps/ffl_core/ffl_core/api/marketing_mail.py:17