Internet Performance Delivered right to your inbox

How To Capture Bounces In Salesforce Using DynECT Email Delivery

Here is a real world scenario that you may have encountered: you use Salesforce to store your leads and contacts, but in order to get the highest deliverability possible for messages to those people, you don’t actually send the messages through Salesforce.

Unfortunately, this doesn’t work great with tracking bounces and having a fully accurate database, contributing to a wasteful cycle when you do try to email someone through the popular CRM tool, something that drives our Biz Dev lead Ryan O’Hara nuts.

But if you’re one of the many that use DynECT Email Delivery to achieve staggering deliverability heights and Salesforce as your primary CRM, we have the integration script for you to solve this conundrum and make your data more accurate.

Dyn Email - Salesforce IntegrationThe basic premise: when an email bounces, you want to have Salesforce updated, enabling you to run reports on all non-delivered email addresses and providing additional insight on whether a contact’s email has bounced before.

To accomplish this, we will take advantage of DynECT Email Delivery’s bounce handling service.

Step 1: Set up a php page that will verify a valid bounce and respond to Salesforce accordingly.

What this means is when the page is called, you’ll make a call back to our API to check if the email that was used in calling the php bounce page is, in fact, a bounced email. Once that has been verified, we will use Salesforce’s API to get the id of the contact associated with this email address.

Once we have that id, the scripts will simply update the contact by replacing the email address with a bounced one. In this case, we’ll use

Step 2: place this script on a publicly facing web server and then go to the Integration page in the DynECT Email Delivery web portal.

You will see a text box about halfway down the page that is used to put the full URL of the bounce callback. Simply enter the URL in the same format as the placeholder URL and save your updates.

You’re done!

Now when an email sent from that account bounces, your Salesforce contact record will be updated and the valuable time of your sales and marketing organizations aren’t wasted attempting to send emails to prospects who have no valid emails to send to.

With some tweaks to this script, you can take any action you want on bounced emails. Perhaps you want to build up a bad email list or update an internal contacts database. By allowing a script to run on your bounces, you get complete control of what makes the most sense to your organization to get the right contact information and eliminate the wrong stuff.

Take a look at the script and the setup and give it a spin! If you don’t use Dyn to deliver your mail and really want to start using this integration, get on board!

Share Now

Whois: Kevin Gray

Kevin Gray is a employee at Oracle Dyn Global Business Unit, a pioneer in managed DNS and a leader in cloud-based infrastructure that connects users with digital content and experiences across a global internet.

To current Dyn Customers and visitors considering our Dynamic DNS product: Oracle acquired Dyn and its subsidiaries in November 2016. After June 29th, 2020, visitors to will be redirected here where you can still access your current Dyn service and purchase or start a trial of Dynamic DNS. Support for your service will continue to be available at its current site here. Sincerely, Oracle Dyn