邮件 SUBHOOK 事件


请求 request


eventsrequest
email此联系人的邮件地址
app应用 ID
send_id发送ID(唯一标示)
tag自定义标签
timestamp事件触发时间(此时间戳为此事件本身的触发时间,不参与计算签名)
token32 位随机字符串
signature数字签名


推送示例
{  
"events":"request",  
"email":"leo@submail.cn",  
"app":10034,  
"send_id":"oiidJ3",  
"tag":"testtag",  
"timestamp":1415014855,  
"token":"067ef7e2f286a9a56eabb07dc9657852",  
"signature":"a70d09a9345adfdd353d34a505dac4ca"  
}


邮件发送已发送成功 delivered


eventsdelivered
email此联系人的邮件地址
message_idSMTP ID
app应用 ID
send_id发送ID(唯一标示)
tag自定义标签
timestamp事件触发时间(此时间戳为此事件本身的触发时间,不参与计算签名)
token32 位随机字符串
signature数字签名


推送示例
{
"events":"delivered",
"email":"leo@submail.cn",
"message_id":"<6b472f5f207f7777ce59c9e1fe9884ab>",
"app":10034,
"send_id":"oiidJ3",
"tag":"testtag",
"timestamp":1415014855,
"token":"067ef7e2f286a9a56eabb07dc9657852",
"signature":"a70d09a9345adfdd353d34a505dac4ca"
}


邮件发送失败或丢失 dropped


eventsdropped
email此联系人的邮件地址
reason发送失败的原因
app应用 ID
send_id发送ID(唯一标示)
tag自定义标签
timestamp事件触发时间(此时间戳为此事件本身的触发时间,不参与计算签名)
token32 位随机字符串
signature数字签名


推送示例
{
"events":"dropped",
"email":"leo@submail.cn",
"app":10034,
"send_id":"oiidJ3",
"tag":"testtag",
"timestamp":1415014855,
"token":"067ef7e2f286a9a56eabb07dc9657852",
"signature":"a70d09a9345adfdd353d34a505dac4ca"
}


回弹 bounced


eventsbounced
email此联系人的邮件地址
message_idSMTP ID
app应用 ID
send_id发送ID(唯一标示)
tag自定义标签
timestamp事件触发时间(此时间戳为此事件本身的触发时间,不参与计算签名)
token32 位随机字符串
signature数字签名


推送示例
{
"events":"bounced",
"email":"leo@submail.cn",
"message_id":"<6b472f5f207f7777ce59c9e1fe9884ab>",
"app":10034,
"send_id":"oiidJ3",
"tag":"testtag",
"timestamp":1415014855,
"token":"067ef7e2f286a9a56eabb07dc9657852",
"signature":"a70d09a9345adfdd353d34a505dac4ca"
}


阅读 opened


eventsopened
email此联系人的邮件地址
app应用 ID
send_id发送ID(唯一标示)
tag自定义标签
ip联系人 IP 地址
agent浏览器
platform操作系统
device设备
country_code国家代码
country国家
province州/省份/直辖市
city城市
latitude经度
longitude纬度
timestamp事件触发时间(此时间戳为此事件本身的触发时间,不参与计算签名)
token32 位随机字符串
signature数字签名


推送示例
{  
"events":"opened",  
"email":"leo@submail.cn",  
"app":10034,  
"send_id":"oiidJ3",  
"tag":"testtag",  
"ip":"10.0.1.199",  
"agent":"Mozilla 5.0",  
"platform":"Mac OS X",  
"device":"desktop",  
"country_code":"CN",  
"country":"China",  
"province":"Shanghai",  
"city":"Shanghai",  
"latitude":"1.9034",  
"longitude":"29.022.2",  
"timestamp":1415014855,  
"token":"067ef7e2f286a9a56eabb07dc9657852",  
"signature":"a70d09a9345adfdd353d34a505dac4ca"  
}


打开超链接 clicked


eventsclicked
email此联系人的邮件地址
url打开的超链接地址
app应用 ID
send_id发送ID(唯一标示)
tag自定义标签
ip联系人 IP 地址
agent浏览器
platform操作系统
device设备
country_code国家代码
country国家
province州/省份/直辖市
city城市
latitude经度
longitude纬度
timestamp事件触发时间(此时间戳为此事件本身的触发时间,不参与计算签名)
token32 位随机字符串
signature数字签名


推送示例
{  
"events":"clicked",  
"email":"leo@submail.cn",  
"app":10034,  
"send_id":"oiidJ3",  
"tag":"testtag",  
"url":"http://submail.cn",  
"ip":"10.0.1.199",  
"agent":"Mozilla 5.0",  
"platform":"Mac OS X",  
"device":"desktop",  
"country_code":"CN",  
"country":"China",  
"province":"Shanghai",  
"city":"Shanghai",  
"latitude":"1.9034",  
"longitude":"29.022.2",  
"timestamp":1415014855,  
"token":"067ef7e2f286a9a56eabb07dc9657852",  
"signature":"a70d09a9345adfdd353d34a505dac4ca"  
}


订阅 subscribe


eventssubscribe
email此联系人的邮件地址
app应用 ID
send_id发送ID(唯一标示)
tag自定义标签
timestamp事件触发时间(此时间戳为此事件本身的触发时间,不参与计算签名)
token32 位随机字符串
signature数字签名


推送示例
{  
"events":"subscribe",  
"email":"leo@submail.cn",  
"app":10034,  
"send_id":"oiidJ3",  
"tag":"testtag",  
"timestamp":1415014855,  
"token":"067ef7e2f286a9a56eabb07dc9657852",  
"signature":"a70d09a9345adfdd353d34a505dac4ca"  
}


变更电邮地址 change_subscribe


eventschange_subscribe
email此联系人的邮件地址
new_email变更后的邮件地址
app应用 ID
send_id发送ID(唯一标示)
tag自定义标签
timestamp事件触发时间(此时间戳为此事件本身的触发时间,不参与计算签名)
token32 位随机字符串
signature数字签名


推送示例
{  
"events":"change_subscribe",  
"email":"leo@submail.cn",  
"new_email":"leo@submailer.cn",  
"app":10034,  
"send_id":"oiidJ3",  
"tag":"testtag",  
"timestamp":1415014855,  
"token":"067ef7e2f286a9a56eabb07dc9657852",  
"signature":"a70d09a9345adfdd353d34a505dac4ca"  
}


退订 unsubscribe


eventsunsubscribe
email此联系人的邮件地址
app应用 ID
send_id发送ID(唯一标示)
tag自定义标签
timestamp事件触发时间(此时间戳为此事件本身的触发时间,不参与计算签名)
token32 位随机字符串
signature数字签名


推送示例
{  
"events":"unsubscribe",  
"email":"leo@submail.cn",  
"app":10034,  
"send_id":"oiidJ3",  
"tag":"testtag",  
"timestamp":1415014855,  
"token":"067ef7e2f286a9a56eabb07dc9657852",  
"signature":"a70d09a9345adfdd353d34a505dac4ca"  
}


被标记为垃圾邮件 marked_as_spam


eventsmarked_as_spam
email此联系人的邮件地址
message_idSMTP ID
app应用 ID
send_id发送ID(唯一标示)
tag自定义标签
timestamp事件触发时间(此时间戳为此事件本身的触发时间,不参与计算签名)
token32 位随机字符串
signature数字签名


推送示例
{  
"events":"marked_as_spam",  
"email":"leo@submail.cn",  
"message_id":"<6b472f5f207f7777ce59c9e1fe9884ab>",  
"app":10034,  
"send_id":"oiidJ3",  
"tag":"testtag",  
"timestamp":1415014855,  
"token":"067ef7e2f286a9a56eabb07dc9657852",  
"signature":"a70d09a9345adfdd353d34a505dac4ca"  
}


举报为垃圾邮件 report_as_spam


eventsreport_as_spam
email此联系人的邮件地址
message_idSMTP ID
app应用 ID
send_id发送ID(唯一标示)
tag自定义标签
timestamp事件触发时间(此时间戳为此事件本身的触发时间,不参与计算签名)
token32 位随机字符串
signature数字签名


推送示例
{  
"events":"report_as_spam",  
"email":"leo@submail.cn",  
"message_id":"<6b472f5f207f7777ce59c9e1fe9884ab>",  
"app":10034,  
"send_id":"oiidJ3",  
"tag":"testtag",  
"timestamp":1415014855,  
"token":"067ef7e2f286a9a56eabb07dc9657852",  
"signature":"a70d09a9345adfdd353d34a505dac4ca"  
}


邮件被拒收 rejected


eventsrejected
email此联系人的邮件地址
message_idSMTP ID
app应用 ID
send_id发送ID(唯一标示)
tag自定义标签
timestamp事件触发时间(此时间戳为此事件本身的触发时间,不参与计算签名)
token32 位随机字符串
signature数字签名


推送示例
{  
"events":"rejected",  
"email":"leo@submail.cn",  
"message_id":"<6b472f5f207f7777ce59c9e1fe9884ab>",  
"app":10034,  
"send_id":"oiidJ3",  
"tag":"testtag",  
"timestamp":1415014855,  
"token":"067ef7e2f286a9a56eabb07dc9657852",  
"signature":"a70d09a9345adfdd353d34a505dac4ca"  
}