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_v1object, where theemailAddressfield is required. - Validates the provided email address and returns an
EmailValidationOutput_v1object with validation insights. - Provides status codes and validation advice, indicating whether an email is valid, a spam trap, disposable, or undeliverable.
- The result from
validateEmailcan be stored in Salesforce using thesaveValidationResultmethod, ensuring traceability and compliance.
Updated 5 months ago