Email sending methods

更新时间:
复制 MD 格式

DirectMail supports three email sending methods: console, API, and SMTP.

You can send emails with DirectMail in three ways:

  • Send batch emails using the console.

  • Send triggered emails and batch emails using an API.

  • Send triggered emails and batch emails using SMTP. This is the recommended method.

Send emails via the console

To send batch emails, select an uploaded recipient list, an approved template, a sender address, and the email type.

Send an email using the console.

Note

The console supports batch emails only, not triggered emails.

The console does not support attachments. As a workaround, add a download link to the email body.

Send emails via API

Supports attachments.

To send attachments, use the How to send an email with an attachment using an SDK.

  • Single-send API: Send a single email.

    Sends triggered and batch emails without a template. Rate limit: 100 requests per second per account.

  • Batch-send API: Send batch emails.

    Sends batch emails using a template. Rate limit: 20 requests per minute in the Chinese mainland, 10 per minute outside.

API documentation (version 2015-11-23): API overview and SDK reference.

Note
  • Use version 2015-11-23 (actively maintained). Versions 2016-08-25 and 2017-06-22 are deprecated.

  • Attachments are supported only with the latest SDKs. OpenAPI Explorer and signature-based calls do not support attachments — add a download link to the email body instead.

  • Rate limits are applied per Alibaba Cloud account.

Send emails via SMTP

Supports attachments.

How to send an email with an attachment using SMTP.

SMTP sends triggered and batch emails without a template.

To use SMTP, enable the SMTP feature for the sender address:

1. Log on to the DirectMail console.

2. In the left navigation pane, click Sender Addresses.

3. Find the target sender address and click Set SMTP Password in the Actions column.

4. In the dialog box, enter an SMTP password and click OK.

SMTP references: SMTP service addresses and Sample code.

To send from the command line: Send an email using SMTP.

Important: SMTP rate limit: 12,000 requests per 180 seconds. This applies to client-to-server connections. After emails reach the DirectMail server, they are delivered as fast as possible, but recipient systems may apply their own throttling. Send at a lower frequency when possible to improve delivery success.

Note
  • DirectMail does not enforce per-recipient frequency limiting for API or SMTP. Implement fatigue control on your client.

  • Rate limits are applied per Alibaba Cloud account.