Pages

Thursday, November 5, 2015

Salesforce: Bounce Email

In previous blog, we've blogged about sending Mass Email from Salesforce. Next, can we track if the email send out is bounced? Yes, Salesforce have this feature out of the box. But make sure you have to activate bounce management.

To check if you have bounce management activated, navigate to Setup | Email Administration | Deliverability.


When bounce management is activated, and a user sends an email (including send with mass email) to a contact, lead, or person account with an invalid email address, Salesforce displays an alert next to that email address and prevents users from sending email (it will be excluded in the list view for mass email) to the address until it is updated or confirmed.


There are 2 options at Bounce Administration:

1. Show bounce alert next to all instances of the email address
When this enabled, this will tell Salesforce to search ALL lead, contact, and person account records in your Salesforce instance of any email address that bounces, and to display a bounce alert next to each record. The Email Bounced Date and Email Bounced Reason will be the same for all other records found.
  • If you do not select this option, Salesforce only displays the bounce alert on the record from which the email was originally sent.
  • This feature applicable only for standard Email field, if you have custom email address field, and the email address match, bounce alert will not be shown there.
  • When the same email added after email bounced, bounce alert will not add to this newly added email.

2. Return bounced emails to sender
When you enable this, sender will receive email for every email bounced with the bounce reason.



When the bounce confirmed?
  • If the mailbox is invalid for a valid domain, you should get email notification and bounce alert almost immediately.
  • But for email address with invalid domain, such as: abc@salahpunya.com, where salahpunya.com is invalid domain, Salesforce will re-try to deliver the email for 10 times with approximate interval of 0, 10, 10, 20, 40, 80, 160, 320, 640 minutes after the last email sent. After 24 hours of delivery failure, email address will be marked as permanent failure and sender will get bounce email.

Sample email log of email sent to email address with invalid domain:


Mail Event status: R - Reception, D - Delivery, T - Transient Failure, P - Permanent Failure

Report
Salesforce provide Bounced Contacts and Bounced Leads standard report to view all email addresses that have bounced email. The report includes the reason the email was bounced, the date the bounce occurred, and the contact, lead, or person account that bounced the email.

For Lead
Click Lead tab and look for Bounced Leads under Reports:


Or navigate to Report tab, looks for Lead Reports folder, then a report name Bounced Leads


You can modify the report as per normal report creation in Salesforce.



As you see two fields here identify for email bounced:
  • Email Bounced Date
  • Email Bounced Reason
This fields are available as well when you create report using Lead report type.

Although you not really able to see the fields in Lead object, but you can create formula field, validation rule and workflow based on those fields, example for formula field:


For Contact
The same fields and report you can use for Contact the same with Lead, including from Bounced Contacts report from Contacts tab.


When user go to contact or lead with email bounced, click Confirm Email Address link and click Save and Remove Bounce Alert.

This will make the both fields Contact Email Bounced Date & Email Bounced Reason fields become blank.


The Lead or Contact will be removed from Bounced Lead or Bounced Contact reports.


Note: Salesforce will mark the email address as bounced if only get response from MTA (Message Transfer Agent) that owns the domain, presented the recipient to them and they have rejected it with a 5xx error that amounts to user unknown. If error messages received is not in Salesforce list, the email may not be marked as bounced. See the complete list of reply from MTA that will be used to mark email as bounce in reference below.


Reference:


9 comments:

  1. Hi I tried the same but its not working for me in contact object. Can you please guide how to view the invalid email like bounce email setup in salesforce

    ReplyDelete
  2. If we are sending emails to community Users (where we have previously set them up as a user when they take out a loan) - is there any bounce management for emails sent (like via User.Contact)?

    ReplyDelete
  3. Is there any bounce management for emails sent to Community Users?

    i.e. we setup all our customers up with a community User account but never actually know if they receive the login email (we don't really care at that point)

    But when we subsequently want to send an email to the customer we go via the User object to we don't hit Email limits.

    If these user emails bounce, does the bounce report go to the User.Conact?

    ReplyDelete
    Replies
    1. Did you get anywhere with this, I am looking for the same thing

      Delete
  4. Hi I am trying to fire a trigger , flow and Process builder on change of the email bounce reason field but non of them are getting fired on the email bounce. Is there any workaround. I created a formula field as well but the formula field does not fire update event. Please let me know if anyone has tackled this situation.

    ReplyDelete
  5. It seems these reports and report folders do not exist in my org. The Email Logs feature can provide information about emails sent in the previous thirty days.

    ReplyDelete