MessageId & EmailId

最新更新:2023-03-14

messageId 是提交一次 SMTP 请求,返回的消息编号。

emailId 是 EngageLab 投递一封邮件,返回的邮件编号,可以对应到某一次请求的某一个收件人。

两者的计算关系如下:

to = [A, B, C] emailId_A = messageId + to.index(A) + '$' + A emailId_B = messageId + to.index(B) + '$' + B emailId_C = messageId + to.index(C) + '$' + C # 注意: * position 不做位数补齐 * 无论 to 中是否含有重复的值,返回的 emailId list 跟发送列表的顺序都是相同的。
          to = [A, B, C]
emailId_A = messageId + to.index(A) + '$' + A
emailId_B = messageId + to.index(B) + '$' + B
emailId_C = messageId + to.index(C) + '$' + C

# 注意:
* position 不做位数补齐
* 无论 to 中是否含有重复的值,返回的 emailId list 跟发送列表的顺序都是相同的。

        
此代码块在浮窗中显示

举例如下:

# to = ["ben@engagelab.com", "joe@engagelab.com", "bida@engagelab.com", ... , "lianzimi@engagelab.com"] 1425758592214_4576_32113_9310.sc-10_10_127_105-inbound # messageId 1425758592214_4576_32113_9310.sc-10_10_127_105-inbound0$ben@engagelab.com # emailId 1425758592214_4576_32113_9310.sc-10_10_127_105-inbound1$joe@engagelab.com # emailId 1425758592214_4576_32113_9310.sc-10_10_127_105-inbound2$bida@engagelab.com # emailId ... 1425758592214_4576_32113_9310.sc-10_10_127_105-inbound99$lianzimi@engagelab.com # emailId
          # to = ["ben@engagelab.com", "joe@engagelab.com", "bida@engagelab.com", ... , "lianzimi@engagelab.com"]
1425758592214_4576_32113_9310.sc-10_10_127_105-inbound  # messageId
1425758592214_4576_32113_9310.sc-10_10_127_105-inbound0$ben@engagelab.com  # emailId
1425758592214_4576_32113_9310.sc-10_10_127_105-inbound1$joe@engagelab.com  # emailId
1425758592214_4576_32113_9310.sc-10_10_127_105-inbound2$bida@engagelab.com  # emailId
...
1425758592214_4576_32113_9310.sc-10_10_127_105-inbound99$lianzimi@engagelab.com  # emailId

        
此代码块在浮窗中显示
在文档中心打开
icon
联系销售