tencent cloud

Sending Email Notification Events

Unduh
Mode fokus
Ukuran font
Terakhir diperbarui: 2026-11-25 12:02:30
Diterjemahkan oleh AI
If you set a callback address, Tencent Cloud will notify the callback address of successful delivery, email rejection, bounce, open, click, unsubscription, and other events. You can configure a callback address in the SES console. For more details, see Callback Address.

Sample Request

{
"event":"bounce",
"email":"example@example.com",
"bulkId":"qcloudses-30-251200670-date-20220601142439-8jolHvR2XcXC1",
"timestamp":1654064683,
"reason":"551 5.1.1 recipient is not exist",
"bounceType":"hard_bounce",
"username":"251200670",
"from":"test@fromexample.com",
"fromDomain":"fromexample.com",
"templateId":123456,
"subject":"example subject",
"messageId":"ea2783c1-7704-48a8-af36-2b9e83e767ec@fromexample.com",
"sentTimestamp":1761555487,
"X-Tencentcloudses-Cb-Custom":"ses callback"
}
Field
Type
Description
event
string
Event type. For details, see Event Type below.
email
string
Recipient address.
link
string
URL of the link in the email that the user clicks. It takes effect only when event="click".
bulkid
string
MessageId returned by the SendEmail API.
timestamp
int
Timestamp when the event is generated.
reason
string
Reason for email delivery failure.
bounceType
string
If the recipient's email service provider rejects the email, the bounce type. Values: soft_bounce | hard_bounce. It takes effect only when event="bounce".
username
string
appId of the Tencent Cloud account.
from
string
Sender address (without sender alias).
fromDomain
string
Sender domain.
templateId
int
Template ID.
useragent
string
The user agent provides information about the device, operating system, and browser used to access the email. It takes effect only for open and click events.
subject
string
Email subject. If it contains non-ASCII characters (such as Chinese), they will be escaped using MIME encoding.
messageId
string
The ​Message-ID​ is a field in the SMTP protocol header, where users can pass their own custom unique identifier for an email when sending via SMTP or API. It's crucial that this identifier must be able to uniquely identify an email message and comply with the RFC5322 standard.
eventid
int
1:delivered
2:dropped
3:bounce
4:open
5:click
6:spamreport
7:unsubscribe
8:deferred
taskId
int
taskId of the batch sending task.
sentTimestamp
int
Sending timestamp.
X-Tencentcloudses-Cb-
string
Set custom content prefixed with "X-Tencentcloudses-Cb-" in the email header. This is supported in both API and SMTP sending. For API sending, it can be set through the SmtpHeaders parameter of the SendEmail API.

Event Types

Value
Description
deferred
The email delivery is delayed by the recipient's email service provider, and retries are in progress.
delivered
Delivered successfully, and the recipient's email service provider has accepted this email.
dropped
This email was rejected by the platform for some reason. For details, refer to Rejection Details.
open
The recipient opened this email.
click
The recipient clicked a link in this email.
bounce
The recipient's email service provider rejected this email (usually due to an incorrect email address).
spamreport
The recipient reported this email.
unsubscribe
The recipient clicked the unsubscribe button of the business, and the business needs to include the "unsubscribe" keyword in the unsubscribe link.


Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan