Skip to content

Instantly share code, notes, and snippets.

@yepher
yepher / relayWebhook.sh
Last active May 3, 2016 14:14
SparkPost Simulate Relay Webhook Event
# Change TOKEN_IF_YOU_NEED_IT to your Auth Token
# Change http://YOUR_RELAY_WEBHOOK_URL to your relay webhook url
curl -X POST -H "X-MessageSystems-Webhook-Token: TOKEN_IF_YOU_NEED_IT -H "Cache-Control: no-cache" -d '[
{
"msys": {
"relay_message": {
"rcpt_to": "help@rt.ntppool.org",
"friendly_from": "john.doe@example.com",
"customer_id": "1521",
"content": {