Campaigns
Bulk email from a sending domain, and its event hook.
mailset campaigns submit
Campaigns: queue up to 100 whole messages from a sending domain, each for one recipient.
Admin or owner
Flags
The sending domain the messages go from.
The messages, 1 to 100, each for one recipient.
Or @<path>, to read the JSON from a file.
Returns
With --json it prints what the API returns.
mailset campaigns submit --domain <domain> --messages <json> [--org <id>]
mailset campaigns submit --domain news.example.com --messages @campaign.json
[
{
"raw": "<the message as base64>",
"campaign": "spring-sale",
"recipient": "user_4821",
"track": {
"opens": true,
"clicks": true
}
}
]
mailset campaigns hook set
Campaigns: where events go.
Admin or owner
Flags
Where events are POSTed: an https URL on a public host name.
Returns
With --json it prints what the API returns.
mailset campaigns hook set --url <url> [--org <id>]
mailset campaigns hook set --url https://app.example.com/hooks/campaigns
mailset campaigns hook rotate
Campaigns: a new signing secret for the hook; the old one stops.
Admin or owner
Returns
With --json it prints what the API returns.
mailset campaigns hook rotate [--org <id>]
mailset campaigns hook rotate