Overview

Validate an email address

The validateEmail method is for validating and verifying email addresses in Salesforce. It checks the provided email against external validation sources and returns detailed insights, including whether the email is valid, disposable, a spam trap, or belongs to a free email provider.

This method works with the saveValidationResult method to store the validation outcome in Salesforce. After validating an email, the result can be processed to update records or saved for auditing purposes.

Key Points

  • Accepts an EmailValidationInput_v1 object, where the emailAddress field is required.
  • Validates the provided email address and returns an EmailValidationOutput_v1 object with validation insights.
  • Provides status codes and validation advice, indicating whether an email is valid, a spam trap, disposable, or undeliverable.
  • The result from validateEmail can be stored in Salesforce using the saveValidationResult method, ensuring traceability and compliance.