All Products
Search
Document Center

Direct Mail:Three Email Sending Methods

Last Updated:Apr 03, 2024

You can send emails using the following methods:

  • Send batch emails using the DirectMail console.

  • Send triggered emails and batch emails using APIs.

  • Send triggered emails and batch emails using SMTP.

Send Emails by Using the Console

Note: Currently you only can send batch emails using the console. Triggered email support is in development. Attachments are not supported.

You can send batch emails by selecting an uploaded recipient list, a verified template, a sender address, and a mail type.

For more information, see Send Email Using the Console.

Send Emails by Using APIs

Note: Attachments are not supported.

  • Single mail interface: SingleSendMail.

    You can send triggered emails and batch emails without calling email templates. However, we do not recommend you send batch emails using the SingleSendMail interface.Frequency limit 100 times/second.

  • Batch email interface: BatchSendMail.

    Using it, you can send batch emails by calling email templates. Single user frequency limit:

The frequency limit is 20 times/minute in China;

The frequency limit is 10 times/minute outside China.

For API call methods, see API Reference or SDK Reference.

Send Emails by Using SMTP

Note: Attachments are supported.

For details on how to send emails with attachments, see How to Send Emails with Attachments Using SMTP?

You can send triggered emails or batch emails using SMTP without calling email templates.

You must enable the SMTP send feature by setting the SMTP password for the sender addresses before using SMTP to send emails.

  1. Log on to the DirectMail Console.

  2. On the left-side navigation pane, click Sender Addresses.

  3. Locate the sender address you want to enable SMTP send feature, and click Set SMTP Password.

  4. Enter a password, and click OK.

For SMTP call method, please check SMTP EndPoints and code examples.

The command line method describes how to send mail by SMTP. Send emails using SMTP.

Note: The SMTP sending frequency is limited to 5000 times/180 seconds. And this is the frequency from the email client to the SMTP server of Direct Mail. After the email delivered to the server, we will try to quickly deliver the email to the receiving system. Due to the flow control policies of each receiving system are different, please try to take a lower frequency for sending emails within the scope of business in order to improve the delivery success rate.

Note

For API and SMTP sending methods, the server does not limit the fatigue control of the fixed receiving address (the sending frequency of the same sender to the same recipient). If necessary, please restrict yourself before launching a request.