ตั้งค่าเว็บฮุคของคุณ
ในเมนู Webhook ของ Mailtarget คุณสามารถส่งเหตุการณ์ข้อความไปยังปลายทางของคุณได้โดยตรงอย่างง่ายดาย แต่หากคุณต้องการจัดการปลายทางของคุณที่นี่ ให้คลิกปุ่ม "สร้าง Webhook"
ทำตามขั้นตอนต่างๆ เพื่อเพิ่มเว็บฮุกใน Mailtarget ใส่ชื่อเว็บฮุก, URL เป้าหมาย, แหล่งที่มาของกิจกรรมการรับ แล้วเลือกกิจกรรมที่ต้องการติดตามได้ กิจกรรมทั้งหมดหรือกิจกรรมที่เลือกขึ้นอยู่กับความต้องการของคุณ แต่ Mailtarget สามารถติดตามได้ดังนี้:
Bounce
Delay
Injection
Open
Click
Delivery
จากนั้นคุณสามารถตั้งค่าวิธีการตรวจสอบสิทธิ์ได้:
None = URL เป้าหมายไม่มีรูปแบบการตรวจสอบสิทธิ์
Basic auth = ชื่อผู้ใช้และรหัสผ่านที่เชื่อมโยงกับ URL เป้าหมายจะถูกส่งผ่านส่วนหัวในระหว่างการร้องขอ หากคุณเลือก basic auth คุณต้องใส่ชื่อผู้ใช้และรหัสผ่านสำหรับการตรวจสอบสิทธิ์
หลังจากสร้างเว็บฮุกแล้ว สถานะเริ่มต้นจะเป็น "เปิดใช้งาน" แต่คุณสามารถเปลี่ยนสถานะเป็น "ปิดใช้งาน" ได้โดยคลิกที่ชื่อเว็บฮุก คลิกปุ่ม "แก้ไขเว็บฮุก" และเปลี่ยนสถานะเป็น "ปิดใช้งาน"
ทดสอบเว็บฮุคของคุณ
ในรายละเอียดเว็บฮุกของคุณ มีข้อมูลเกี่ยวกับการตั้งค่าล่าสุดของคุณ และมีเมนู 3 เมนูที่คุณสามารถเข้าถึงและลองใช้ได้ หนึ่งในนั้นคือเมนูทดสอบ
ในส่วนนี้ คุณสามารถทดสอบการส่งไปยังเว็บฮุกของคุณได้โดยคลิกปุ่ม "ส่งชุดทดสอบ" จะมีการแจ้งเตือน "ส่งการทดสอบสำเร็จ" หากเว็บฮุกได้รับข้อมูลสำเร็จ และจะมีการแจ้งเตือน "ส่งการทดสอบล้มเหลว" หากเว็บฮุกไม่ได้รับข้อมูล
ตัวอย่างคำขอเว็บฮุกมีดังนี้:
{
"batchId": "645c2177e3b86a0001887bc6",
"retryCount": 0,
"events": [
{
"status": "injection",
"eventId": "92356927693813856",
"messageId": "000443ee14578172be22",
"subject": "Holiday deals are here!",
"sender": "[email protected]",
"sendingIp": "18.236.253.72",
"recipient": "[email protected]",
"recipientMeta": "{\"customKey\":\"customValue\"}",
"mailboxProvider": "Gsuite",
"recipientDomain": "example.com",
"recipientType": "cc",
"timestamp": 1460989507000
},
{
"status": "delivery",
"eventId": "92356927693813856",
"messageId": "000443ee14578172be22",
"subject": "Holiday deals are here!",
"sender": "[email protected]",
"sendingIp": "18.236.253.72",
"recipient": "[email protected]",
"recipientMeta": "{\"customKey\":\"customValue\"}",
"ipAddress": "18.236.253.72",
"mailboxProvider": "Gsuite",
"recipientDomain": "example.com",
"recipientType": "cc",
"timestamp": 1460989507000,
"injectionTime": 1460989507000
},
{
"status": "open",
"eventId": "92356927693813856",
"messageId": "000443ee14578172be22",
"subject": "Holiday deals are here!",
"sender": "[email protected]",
"sendingIp": "18.236.253.72",
"recipient": "[email protected]",
"recipientMeta": "{\"customKey\":\"customValue\"}",
"ipAddress": "18.236.253.72",
"mailboxProvider": "Gsuite",
"recipientDomain": "example.com",
"recipientType": "cc",
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.118 Safari/537.36",
"geoIp": "{\"country\":\"US\",\"region\":\"MD\",\"city\":\"Columbia\",\"latitude\":39.1749,\"longitude\":-76.8375,\"zip\":21046,\"postal_code\":\"21046\"}",
"timestamp": 1460989507000,
"injectionTime": 1460989507000
},
{
"status": "click",
"eventId": "92356927693813856",
"messageId": "000443ee14578172be22",
"subject": "Holiday deals are here!",
"sender": "[email protected]",
"sendingIp": "18.236.253.72",
"recipient": "[email protected]",
"recipientMeta": "{\"customKey\":\"customValue\"}",
"ipAddress": "18.236.253.72",
"mailboxProvider": "Gsuite",
"recipientDomain": "example.com",
"recipientType": "cc",
"targetLinkUrl": "http://example.com",
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.118 Safari/537.36",
"geoIp": "{\"country\":\"US\",\"region\":\"MD\",\"city\":\"Columbia\",\"latitude\":39.1749,\"longitude\":-76.8375,\"zip\":21046,\"postal_code\":\"21046\"}",
"timestamp": 1460989507000,
"injectionTime": 1460989507000
},
{
"status": "delay",
"eventId": "92356927693813856",
"messageId": "000443ee14578172be22",
"subject": "Holiday deals are here!",
"sender": "[email protected]",
"sendingIp": "18.236.253.72",
"recipient": "[email protected]",
"recipientMeta": "{\"customKey\":\"customValue\"}",
"ipAddrss": "18.236.253.72",
"mailboxProvider": "Gsuite",
"recipientDomain": "example.com",
"recipientType": "cc",
"bounceClass": "1",
"numRetries": "2",
"timestamp": 1460989507000,
"rawReason": "MAIL REFUSED - IP (17.99.99.99) is in black list",
"reason": "MAIL REFUSED - IP (a.b.c.d) is in black list",
"injectionTime": 1460989507000
},
{
"status": "bounce",
"eventId": "92356927693813856",
"messageId": "000443ee14578172be22",
"subject": "Holiday deals are here!",
"sender": "[email protected]",
"sendingIp": "18.236.253.72",
"recipient": "[email protected]",
"recipientMeta": "{\"customKey\":\"customValue\"}",
"ipAddress": "18.236.253.72",
"mailboxProvider": "Gsuite",
"recipientDomain": "example.com",
"recipientType": "cc",
"bounceClass": "1",
"numRetries": "2",
"timestamp": 1460989507000,
"rawReason": "MAIL REFUSED - IP (17.99.99.99) is in black list",
"reason": "MAIL REFUSED - IP (a.b.c.d) is in black list",
"injectionTime": 1460989507000
},
{
"status": "spam_complaint",
"eventId": "92356927693813856",
"messageId": "000443ee14578172be22",
"subject": "Holiday deals are here!",
"sender": "[email protected]",
"sendingIp": "18.236.253.72",
"recipient": "[email protected]",
"recipientMeta": "{\"customKey\":\"customValue\"}",
"ipAddress": "18.236.253.72",
"mailboxProvider": "Gsuite",
"recipientDomain": "example.com",
"recipientType": "cc",
"fbType": "abuse",
"reportBy": "server.email.com",
"reportTo": "abuse.example.com",
"timestamp": 1677553569000,
"injectionTime": 1460989507000
},
{
"status": "link_unsubscribe",
"eventId": "92356927693813856",
"messageId": "000443ee14578172be22",
"subject": "Holiday deals are here!",
"sender": "[email protected]",
"sendingIp": "18.236.253.72",
"recipient": "[email protected]",
"recipientMeta": "{\"customKey\":\"customValue\"}",
"ipAddress": "18.236.253.72",
"mailboxProvider": "Gsuite",
"recipientDomain": "example.com",
"recipientType": "cc",
"timestamp": 1460989507000,
"injectionTime": 1460989507000,
"targetLinkUrl": "http://example.com",
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.118 Safari/537.36"
},
{
"status": "list_unsubscribe",
"eventId": "92356927693813856",
"messageId": "000443ee14578172be22",
"subject": "Holiday deals are here!",
"sender": "[email protected]",
"sendingIp": "18.236.253.72",
"recipient": "[email protected]",
"recipientMeta": "{\"customKey\":\"customValue\"}",
"ipAddress": "18.236.253.72",
"mailboxProvider": "Gsuite",
"recipientDomain": "example.com",
"recipientType": "cc",
"timestamp": 1460989507000,
"injectionTime": 1460989507000
}
]
}
สถานะชุดเว็บฮุก
เมนูสถานะชุดเว็บฮุกของ Mailtarget จะแสดงสถานะของเว็บฮุกที่คุณเชื่อมต่อกับ Mailtarget เมนูนี้จะแสดงรายละเอียดเกี่ยวกับข้อมูลเวลาส่งหรือเวลาส่งไปยังเว็บฮุก รหัสชุด สถานะ ความพยายามส่ง และการตอบกลับที่ได้รับจากเว็บฮุกของคุณ
โปรดทราบว่าหากเว็บฮุกของคุณล้มเหลว ระบบจะพยายามส่งซ้ำสูงสุด 7 ครั้ง หากยังคงล้มเหลวต่อไป คุณจะได้รับอีเมลแจ้งเตือนอัตโนมัติเพื่อแก้ไขปัญหา หากไม่ได้รับการแก้ไขภายใน 7 ชั่วโมง เว็บฮุกจะถูกปิดใช้งาน




