Easymailing
Email sends

Release a queued email now

PUT /email_sends/{uuid}/actions/send_now

PUT/email_sends/{uuid}/actions/send_now

Brings forward an email that is still waiting (its 10-second undo window or its scheduled time) so it is released to Gmail immediately. The mailbox sending limits still apply.

When to use: When the user asks to send now an email that is queued or scheduled. It reaches other people and skips the chance to undo, so confirm with the user.

When not to use: To send a new email, use send_email. For a batch, use send_queued_email_batch_now. Nothing happens to an email that already started to leave.

Side effects: Sets release_at to now and publishes the job without delay; the email leaves as soon as a background worker takes it, so check state with get_email_send.

Permissions: Requires a CRM seat and the crm.contacts_companies.write capability. Only the author of the send can do it.

Authorization

X-Auth-Token<token>

Value for the X-Auth-Token header parameter.

In: header

Path Parameters

uuid*string

UUID of the send.

Formatuuid

Response Body

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X PUT "https://api.easymailing.com/email_sends/3a9e1f54-0000-4000-8000-6c474d08b1a5/actions/send_now" \  -H "X-Auth-Token: YOUR_API_KEY"
{  "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",  "state": "queued",  "failure_reason": "rejected",  "release_at": "2019-08-24T14:15:22Z",  "scheduled_at": "2019-08-24T14:15:22Z",  "sender_uuid": "6fd60e87-ecde-4069-8fdb-aebbacafea6d",  "sender_address": "user@example.com",  "contact": "/entity/1",  "record": "/entity/1",  "record_type": "contact",  "record_name": "string",  "mode": "compose",  "subject": "string",  "to": [    "string"  ],  "cc": [    "string"  ],  "bcc": [    "string"  ],  "recipients": [    {}  ],  "batch": "/entity/1",  "created_at": "2019-08-24T14:15:22Z",  "sent_at": "2019-08-24T14:15:22Z",  "failed_at": "2019-08-24T14:15:22Z",  "canceled_at": "2019-08-24T14:15:22Z",  "cancellable": true,  "retryable": true,  "copy_visible": true}