All Products
Search
Document Center

Direct Mail:BatchSendMail

更新時間:Jul 21, 2025
This topic is generated by a machine translation engine without any human intervention. ALIBABA CLOUD DOES NOT GUARANTEE THE ACCURACY OF MACHINE TRANSLATED CONTENT. To request a human-translated version of this topic or provide feedback on this translation, please include it in the feedback form.

Batch Send Emails

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
dm:BatchSendMailnone
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
TemplateNamestringYes

The name of the template that has been created and approved in advance.

test1
AccountNamestringYes

The sending address configured in the management console.

test@example.com
ReceiversNamestringYes

The name of the recipient list that has been created and uploaded with recipients. Note: The recipient list should not be deleted until at least 10 minutes after the task is triggered, otherwise it may cause sending failure.

test2
AddressTypeintegerYes
  • 0: Random account
  • 1: Sending address
1
TagNamestringNo

Email tag name.

test3
ReplyAddressstringNo

Reply address

test2***@example.net
ReplyAddressAliasstringNo

Alias for the reply address

Lucy
ClickTracestringNo
  • 1: Enable data tracking function
  • 0 (default): Disable data tracking function
0
UnSubscribeLinkTypestringNo

The type of generated unsubscribe link. Refer to the Unsubscribe Function Link Generation and Filtering Mechanism document.

  • disabled: Do not generate
  • default: Use the default strategy: Generate an unsubscribe link when a bulk-type sending address sends to specific domains, such as those containing keywords like "gmail", "yahoo", "google", "aol.com", "hotmail", "outlook", "ymail.com", etc.
  • zh-cn: Generate, for future content preparation
  • en-us: Generate, for future content preparation
default
UnSubscribeFilterLevelstringNo

Filtering level. Refer to the Unsubscribe Function Link Generation and Filtering Mechanism document.

  • disabled: No filtering
  • default: Use the default strategy, bulk addresses use sender address-level filtering
  • mailfrom: Sender address-level filtering
  • mailfrom_domain: Sender domain-level filtering
  • edm_id: Account-level filtering
mailfrom_domain
HeadersstringNo

Currently, the standard fields that can be added to the email header are Message-ID, List-Unsubscribe, and List-Unsubscribe-Post. Standard fields will overwrite the existing values in the email header, while non-standard fields must start with X-User- and will be appended to the email header. Currently, up to 10 headers can be passed in JSON format, and both standard and non-standard fields must comply with the syntax requirements for headers.

{ "Message-ID": "<msg0001@example.com>", "X-User-UID1": "UID-1-000001", "X-User-UID2": "UID-2-000001" }
IpPoolIdstringNo

dedicated IP pool ID. Users who have purchased an dedicated IP can use this parameter to specify the outgoing IP for this send operation.

xxx

Response parameters

ParameterTypeDescriptionExample
object
EnvIdstring

Event ID

xxx
RequestIdstring

Request ID

12D086F6-8F31-4658-84C1-006DED011A85

Examples

Sample success responses

JSONformat

{
  "EnvId": "xxx",
  "RequestId": "12D086F6-8F31-4658-84C1-006DED011A85"
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2025-01-09The request parameters of the API has changedView Change Details
2024-02-20The request parameters of the API has changedView Change Details
2022-09-06API Description Update. The API operation is not deprecated.. The Error code has changedView Change Details