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
聯繫銷售