Easymailing
Email campaigns

Send an email campaign now

PUT /campaigns/{uuid}/actions/send_now

PUT/campaigns/{uuid}/actions/send_now

SENDS THE CAMPAIGN FOR REAL: starts delivering the email right away to every recipient of the campaign. These are real emails to real people; once it starts it cannot be undone or recalled. Before sending, check with get_campaign that the campaign has recipients (recipient_count above 0), no entry in warnings has blocks_sending: true, and its status is draft, ready or scheduled. The checks run at the moment of sending, not before: if one fails the request is rejected.

When to use: Only when the person has confirmed that this campaign must go out now to all its recipients.

When not to use: To send at a later time, use campaign_schedule. To see how the email looks, use campaign_send_test: it sends only to the addresses you list. For an SMS campaign, use send_sms_campaign_now. Automation campaigns cannot be sent manually.

Side effects: Real delivery: the status becomes campaign.status.sending and then campaign.status.sent, the sends use email credits of the plan and count against the daily sending limit, and opens, clicks and bounces start to be recorded. A scheduled campaign can also be sent now; its schedule is cancelled. With campaign_confirmation_email, a confirmation email goes to mailing_confirm_emails when the sending ends. If a check at send time fails (no active subscribers, account not allowed to send, not enough credits, daily limit reached, expired subscription, no content, blocked audience), the request returns 400 and the campaign is left in campaign.status.error: it can no longer be edited or sent, so retry with a copy from duplicate_campaign.

Permissions: Requires the manager role or higher, or the marketing.campaigns.send capability.

Authorization

X-Auth-Token<token>

Value for the X-Auth-Token header parameter.

In: header

Path Parameters

uuid*string

UUID of the email campaign (the uuid field returned by list_campaigns).

Request Body

The updated Campaign resource

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X PUT "https://api.easymailing.com/campaigns/8d4e2a71-5c3b-4f96-b1a8-6e0d9c7f2b35/actions/send_now" \  -H "X-Auth-Token: YOUR_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "campaign_confirmation_email": true,    "mailing_confirm_emails": [      "user@example.com"    ]  }'
null