Dryad Mailer Emails
When Send Emails Using is "Amazon SES", Dryad Mailer emails your receipts through Amazon Simple Email Service and records each send in Salesforce. This article explains those records, what their statuses and checkboxes mean, and how to send failed emails again.
To set up Dryad Mailer, see Dryad Mailer Setup. With Salesforce email, none of this applies.
How a Send Is Recorded
Every time receipts are emailed, from Batch Receipts, a Receipt list view, the Email Receipt button or the scheduled job, Dryad Receipting creates:
- one Email record for the send, named "Email sent on" followed by the date and time;
- one Email Recipient for each receipt, with the receipt, its Contact, the email template and the status "Ready".
The emails then go out in the background, in groups of Receipt Batch Size (see Receipt Settings). Each one is personalized from the receipt's email template and has the receipt's PDF attached.
A sent email is also logged as a completed email activity on the Contact, linked to the receipt.
Open the Email from the Emails tab, or from the "Email Receipts" Batch Receipt Log of the run. Its Email Recipients list shows what happened to each receipt.
A receipt is marked as emailed as soon as its Email Recipient is created. Check the Email Recipient to see whether it was sent and delivered.
Email Recipient Status and Tracking
| Field | Meaning |
|---|---|
| Status "Ready" | Waiting to be sent. |
| Status "Sent" | Amazon accepted the email for delivery. |
| Status "Failed" | The email couldn't be sent. Error Message says why. |
| Delivered | Ticked when the email reached the recipient's mail server. |
| Opened | Ticked when the recipient opened the email. Some mail programs block the tracking, so an unopened email may still have been read. |
| Soft Bounce | Ticked when delivery failed for a temporary reason, such as a full mailbox. It can be retried. |
| Hard Bounce | Ticked when delivery failed permanently (for example, the address doesn't exist) or the recipient reported the email as spam. Don't retry it. |
Delivered, Opened and the bounce checkboxes are filled in by the events Amazon sends back. They need the configuration set and the Salesforce Site from the setup. Each event is also stored as an Email Event record under the Email Recipient.
Why a Recipient Fails
| Error Message | Cause and fix |
|---|---|
| "Missing email address." | The receipt has no Donor Email, and its Contact has no email. Add the address, then send again. |
| "Attachment size exceeds 5MB limit." | The receipt's PDF is larger than 5 MB, usually because of large images in the template. Make the images smaller, click Create PDF on the receipt, then send again. |
| "… has no Email_Template_Id__c." or "Email template merge failed: …" | No email template is assigned, or it couldn't be merged. Check the email template in Receipt Settings or on the Receipting Account. |
| Text from Amazon, such as "MessageRejected" | Amazon refused the email, usually because the sender address isn't verified in Amazon SES, or, in the SES sandbox, the donor's address isn't verified either. |
| A credential or connection error | The user who sent the emails can't use the Amazon credential, or the connection is set up for another region. See Dryad Mailer Setup. |
Sending Failed Emails Again
Open the Email record and use its two buttons:
- Fix the cause of the failures (see above).
- Click Reset Recipients, then Reset Failed Recipients. Every recipient with the status "Failed" or a Soft Bounce is set back to "Ready", and its error message and Soft Bounce box are cleared. The screen says "The recipients were set to "Ready". You can now email them." If there are none, it says "There aren't any failed or soft-bounced recipients to be reset."
- Click Send Email, then Send Email again to confirm. Only recipients that are "Ready" are emailed. The screen says "The email was scheduled.", and the emails go out in the background.
Only recipients that are "Ready" are emailed, so recipients that were already emailed aren't emailed again.
Hard-bounced recipients aren't reset. Correct the donor's email address and send their receipt with the Email Receipt button, or print it.
Finding Problems
- Filter Email Recipients by Status = "Failed", or Hard Bounce or Soft Bounce ticked, to find receipts that didn't reach donors.
- Filter by Delivered not ticked to find emails that were sent but not confirmed as delivered.
The Email's own Status becomes "Complete" when its send finishes without errors. Check its recipients rather than its status: they show what happened to each receipt.
Troubleshooting
| Symptom | Check |
|---|---|
| Recipients stay "Ready" | The send hasn't run. Click Send Email on the Email. |
| "There aren't any recipients to be emailed." | No recipient is "Ready". Use Reset Recipients first. |
| Recipients are "Sent", but Delivered is never ticked | Amazon's events aren't reaching Salesforce. Check the configuration set, the SNS subscription, the Site and the sharing rule on Email Recipient. See Dryad Mailer Setup. |
| The receipt shows Email Sent but the donor didn't get it | Open the receipt's Email Recipient and check its Status, Error Message and bounce boxes. |