Salesforce + Emailyze: Enrich Every Lead with Email Risk Data

Salesforce is only as good as the data inside it. When disposable email addresses land in your Lead and Contact objects, they corrupt lead scoring models, inflate pipeline numbers, and waste sales rep time. This guide explains how to use Emailyze to detect and flag those addresses before they cause damage.

Why Disposable Emails Reach Salesforce

Disposable email addresses enter Salesforce through three common paths:

Form submissions. Web-to-Lead forms, landing page integrations, and trade show badge scanners all accept any syntactically valid email. Disposable providers like Guerrilla Mail and Temp Mail pass that basic validation.

List imports. Purchased, rented, or scraped lists routinely include addresses created specifically to receive a single confirmation email. Once that email is received, the address expires — but it lives on in your Salesforce org.

Third-party integrations. Data syncs from marketing automation tools, event platforms, and e-commerce systems can silently propagate bad addresses into your CRM.

The Three Enrichment Fields

Emailyze writes three custom fields to every Lead and Contact:

Apex Trigger Setup

The integration runs as a before insert trigger on the Lead object. This means the fields are written before the record is committed — no async delay, no follow-up update required.

trigger EmailyzeLeadCheck on Lead (before insert) {
    Http http = new Http();
    for (Lead lead : Trigger.new) {
        if (lead.Email == null) continue;

        HttpRequest req = new HttpRequest();
        req.setEndpoint(
            'https://api.emailyze.xyz/v1/check/?email='
            + EncodingUtil.urlEncode(lead.Email, 'UTF-8')
        );
        req.setMethod('GET');
        req.setHeader('X-API-Key', '{!$Credential.Emailyze.APIKey}');
        req.setTimeout(5000);

        try {
            HttpResponse res = http.send(req);
            if (res.getStatusCode() == 200) {
                Map body = (Map)
                    JSON.deserializeUntyped(res.getBody());

                lead.Emailyze_Risk_Score__c =
                    (Decimal) body.get('risk_score');
                lead.Emailyze_Is_Disposable__c =
                    (Boolean) body.get('is_disposable');
                lead.Emailyze_Provider_Type__c =
                    (String)  body.get('provider_type');
            }
        } catch (Exception e) {
            System.debug('Emailyze callout failed: ' + e.getMessage());
        }
    }
}

Store the API key as a Salesforce Named Credential to keep it out of your codebase. The trigger wraps the callout in a try/catch so that an API timeout or error never blocks the Lead from being saved — it simply leaves the Emailyze fields blank.

Alternative: Zapier or Make (No-Code)

If you prefer not to write Apex, you can wire the same enrichment through Zapier or Make:

1. Trigger: New Lead in Salesforce. 2. Action: GET request to https://api.emailyze.xyz/v1/check/?email={{email}} with your API key in the X-API-Key header. 3. Action: Update the Salesforce Lead record with risk_score, is_disposable, and provider_type from the response.

This approach runs after insert rather than before, so there is a short window between Lead creation and enrichment. For most use cases this is acceptable.

Lead Scoring Workflow Example

Use Emailyze_Risk_Score__c as a negative signal in Einstein Lead Scoring or a custom scoring model:

This ensures disposable leads never surface at the top of your queue, and your highest-scoring leads come from personal and business addresses only.

Campaign Exclusion Setup

To exclude disposable addresses from Salesforce campaigns:

1. Create a Campaign Member filter: Emailyze_Is_Disposable__c equals True. 2. Add this filter to every active Campaign as an exclusion criteria. 3. Alternatively, create a dynamic list of excluded contacts using a Report filtered on Emailyze_Is_Disposable__c = true and reference it in your Campaign Member import.

For Pardot (Marketing Cloud Account Engagement) users, add Emailyze_Is_Disposable__c as a suppression list field in your Engagement Studio programs.

Getting Started

1. Get a free Emailyze API key — no credit card required. 2. Create the three custom fields on your Lead object in Salesforce Setup. 3. Create a Named Credential for your API key. 4. Paste the Apex trigger into a new Trigger in Developer Console. 5. Test with a Lead using a known disposable address (e.g., any @guerrillamail.com address).