Create Email Campaign
create_email_campaign[write] Creates a DRAFT e-mail campaign (the result has its id and uuid); nothing is sent until it is started in the panel, which needs the merchant's confirmation that the recipients agreed to receive it.
email_account_id or email_account_uuid is the sending account: active, in a connected mail zone. Give an HTML body, a text body or both. {name} (any {variable}) in the subject and bodies is replaced by each recipient's value.
email_campaign_schedule_datetime (ISO 8601) is when it should go out once started; empty = right away. An unsubscribe link is added to every mail (its wording: email_campaign_unsubscribe_label).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| email_account_id | No | ||
| email_account_uuid | No | ||
| email_campaign_html | No | ||
| email_campaign_text | No | ||
| email_campaign_title | Yes | ||
| email_campaign_subject | Yes | ||
| email_campaign_schedule_datetime | No | ||
| email_campaign_unsubscribe_label | No |