Easymailing
Email sends

Retry a failed email

PUT /email_sends/{uuid}/actions/retry

PUT/email_sends/{uuid}/actions/retry

Queues again, with the same content, an email that failed or whose delivery could not be confirmed.

When to use: When the user asks to send again a failed email, once the cause is fixed. For an unconfirmed email the original may have actually left, so the recipients could get it twice: tell the user and confirm first.

When not to use: To change the text first, use reopen_email_send. An email that belongs to an email sequence is retried from its sequence enrollment. For a send that is sent or canceled, create a new one with send_email.

Side effects: The email is queued again and leaves like a new one (about 20 seconds later, within the mailbox limits) to the same recipients, asynchronously. The permission to send is checked again.

Permissions: Requires a CRM seat and the crm.contacts_companies.write capability. The original sender must still be a mailbox the user can send from: one of their own or one shared with them (see list_email_senders). 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/retry" \  -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}