Easy Email For Mandrill Response

Everytime you send an email with Easy Email For Mandrill you will receive a EasyEmailResponse class. You can then use this to help manage your email sending.

Below is the description of the EasyEmailResponse class.

EasyEmailResponse

Errored

This boolean field will be set to false unless there has been a problem

AllEmailsSent

If set to true all your emails have been sent.

NumberOfEmailsAttempted

This is the number of emails Easy Email For Mandrill has parsed and will attempt to send.

NumberOfEmailsSent

This is the number of emails that have been sent.

NumberOfEmailsFailed

This is the number of emails that have failed and have not been sent.

Message

If there is a message that needs to be passed back to the developer it will be in this field.

EmailFailures

This is a list of EmailFailure objects which represent any emails that failed. The EmailFailure class has the following structure:

EmailFailure => Recipient

The recipient that was supplied including.

  • EmailAddress
  • DisplayName
  • ThirdPartyReference

EmailFailure => Reason

This is the reason for the email not being sent.

EmailSent

A list of EmailSuccess objects which represent any emails that have sent. The EmailSuccess class has the following structure:

EmailSuccess => Recipient

This is the recipient that was supplied including.

  • EmailAddress
  • DisplayName
  • ThirdPartyReference

EmailSuccess => ID

The unique ID Mandrill has assigned this email you can use this later for getting statistics for that email.

EmailSuccess => Status

The sending status of the recipient - either "sent", "queued", "scheduled", "rejected", or "invalid".

EmailSuccess => RejectReason

The reason for the rejection if the recipient status is "rejected" - one of "hard-bounce", "soft-bounce", "spam", "unsub", "custom", "invalid-sender", "invalid", "test-mode-limit", or "rule".

RawResponse

We will attempt to return the raw response from Mandrill in this field.