All Products
Search
Document Center

Direct Mail:ValidateEmail

Last Updated:Jan 07, 2026

Validates an email address.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

dm:ValidateEmail

none

*All Resource

*

None None

Request syntax

POST  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

Email

string

Yes

The email address to validate.

xxx@yyy.com

Timeout

integer

No

The timeout period. The default value is 60 seconds.

20

CheckGraylist

boolean

No

Specifies whether to check the graylist. The default value is false. The result is sent through an asynchronous notification message from EventBridge.

true

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

The request ID.

xxxx-xxxx-xxxx-xxxx

Status

string

The validation status of the email address.

Valid values:

  • VALID :

    The address is valid.

  • CATCHALL :

    The address is a catch-all address. This indicates that the domain accepts emails sent to any non-existent mailbox at the domain.

  • UNKNOWN :

    The address status is unknown.

  • INVALID :

    The address is invalid.

  • DONOTMAIL :

    The address is abnormal. You can remove this type of address in marketing scenarios.

VALID

SubStatus

string

The detailed validation status of the email address. This provides more information about the Status.

Valid values:

  • NO_DNS_ENTRIES :

    Invalid address. No DNS records found.

  • MISSPELLED :

    Invalid address. The address is misspelled.

  • MAILBOX_NOT_EXISTS :

    Invalid address. The mailbox does not exist.

  • SYSTEM_ERROR :

    Unknown status. A system error occurred.

  • SYNTAX_INVALID :

    Invalid address. A syntax error exists.

  • ROLE_ACCOUNT :

    Abnormal address. The address is a role account.

  • SMTP_CONNECT_FAILED :

    Unknown status. The connection to the recipient's SMTP server failed.

  • DISABLED :

    Invalid address. The mailbox is disabled.

  • UNSPECIFIED :

    No specific details. This sub-status can be returned for VALID, CATCHALL, or UNKNOWN statuses.

  • IP_UNROUTABLE :

    Invalid address. The mail server IP address is unreachable.

  • MAILBOX_FULL :

    Invalid address. The mailbox is full.

  • DISPOSABLE :

    Abnormal address. The address is a disposable email address.

  • TIMEOUT_EXCEEDED :

    Unknown status. The specified timeout period was exceeded.

UNSPECIFIED

Provider

string

The email service provider of the address.

Valid values:

  • Others :

    Others

  • Yahoo :

    Yahoo

  • Gmx :

    Gmx

  • MailDotCom :

    MailDotCom

  • Tencent :

    Tencent

  • Gmail :

    Gmail

  • Outlook :

    Outlook

  • Zoho :

    Zoho

  • Proton :

    Proton

  • Netease :

    Netease

  • Icloud :

    Icloud

  • Webde :

    Webde

Gmail

IsFreeMail

boolean

Indicates whether the address is from a free email service.

Valid values:

  • true :

    true

  • false :

    false

true

LocalPart

string

The local part of the email address parsed from the syntax check. The local part is converted to lowercase and the content after the plus sign (+) is removed.

xxx

DomainPart

string

The domain part of the email address parsed from the syntax check. The domain part is converted to lowercase.

yyy.com

Examples

Success response

JSON format

{
  "RequestId": "xxxx-xxxx-xxxx-xxxx",
  "Status": "VALID",
  "SubStatus": "UNSPECIFIED",
  "Provider": "Gmail",
  "IsFreeMail": true,
  "LocalPart": "xxx",
  "DomainPart": "yyy.com"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.