Skip to content

Instantly share code, notes, and snippets.

@phroggyy
Created May 3, 2016 10:44
Show Gist options
  • Save phroggyy/8658fb86da96faecdcaa984f41a2ad43 to your computer and use it in GitHub Desktop.
Save phroggyy/8658fb86da96faecdcaa984f41a2ad43 to your computer and use it in GitHub Desktop.
SparkPost test relay webhook
curl -X POST -H "X-MessageSystems-Webhook-Token: TOKEN_IF_YOU_NEED_IT -H "Cache-Control: no-cache" -d '[
{
"msys": {
"relay_message": {
"rcpt_to": "[email protected]",
"friendly_from": "[email protected]",
"customer_id": "1521",
"content": {
"text": "Simple Test\r\n\r\n",
"subject": "Simple Test Please Ignore This...",
"html": "<div dir=\"ltr\">Simple Test<div class=\"gmail_signature\"><div dir=\"ltr\"><div><div><br></div></div></div></div>\r\n</div>\r\n\r\n",
"headers": [
{
"Return-Path": "<[email protected]>"
},
{
"Authentication-Results": "momentum3.platform1.us-west-2.aws.cl.messagesystems.com x-tls.subject=\"/C=US/ST=California/L=Mountain View/O=Google Inc/CN=smtp.gmail.com\"; auth=pass (cipher=ECDHE-RSA-AES128-GCM-SHA256)"
},
{
"Received": "from [209.85.218.47] ([209.85.218.47:36431] helo=mail-oi0-f47.google.com) by momentum3.platform1.us-west-2.aws.cl.messagesystems.com (envelope-from <[email protected]>) (ecelerity 4.2.17.54380 r(Core:4.2.17.4)) with ESMTPS (cipher=ECDHE-RSA-AES128-GCM-SHA256 subject=\"/C=US/ST=California/L=Mountain View/O=Google Inc/CN=smtp.gmail.com\") id 50/24-16018-343C0275; Wed, 27 Apr 2016 13:48:51 +0000"
},
{
"Received": "by mail-oi0-f47.google.com with SMTP id x201so49251780oif.3 for <[email protected]>; Wed, 27 Apr 2016 06:48:51 -0700 (PDT)"
},
{
"DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=sparkpost.com; s=google; h=mime-version:date:message-id:subject:from:to; bh=GkwfKMXyqEa86KQOJctC8anbAK8euidWtIonbjDvkOk=; b=eoO3+CFdUfKdvL4riMit9yhmIj2Vxu9RrfwiNrNTBfN06BLtN4nrn5R+q1FyRMCSED 0PclcxPQeGqZA8nypN0PTLjIoIihR8coSh5EFB+LhyODVi82CTilfqYiqX78+1pHu2YH 8aMhGmGobo2cCFu0XK4Z7OkzUevwmEQtuEgWA="
},
{
"X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=GkwfKMXyqEa86KQOJctC8anbAK8euidWtIonbjDvkOk=; b=JTyRzWekFpiWUPWW9712h5V0x9uYKkJQ1G13pMndpzn1nzKJdpHd/zgdKKr9LUT0G2 UEbP4Hxuge42JSFh/bNDf7KhJgQG5wgyf6tKN4PkU6vuRSsKFyrdrb5SxGhoMbDr0CtQ C1YE7qMzF+uj5U+14E2xz8Xo0SCXdapo+fHfjlOZ+EmBimXkaYHJ4prppg6FZHWOG6cT 3LGBALyAqOOPSPpPqSu4bzucONsZQpATEjhHL/nLxiB0kpyKb7fGOZSAyT1NyXY33BDF nuaDspOrHxg5Zlx4NH8w/vKGJqQnvez/U7NjToLoSX3+pC4s9fp/0UpnCq9glmwoQkqb AsuQ=="
},
{
"X-Gm-Message-State": "AOPr4FXSEQWw/JpJ9q4LK3lbWUBnKe8cUWsnc880Cy0IIn0J8rxE3NPJR29q8WIe0HDCFOfUxK+8OXVmSM3wxGgb"
},
{
"MIME-Version": "1.0"
},
{
"X-Received": "by 10.202.213.22 with SMTP id m22mr3616273oig.102.1461764930525; Wed, 27 Apr 2016 06:48:50 -0700 (PDT)"
},
{
"Received": "by 10.202.87.79 with HTTP; Wed, 27 Apr 2016 06:48:50 -0700 (PDT)"
},
{
"Date": "Wed, 27 Apr 2016 08:48:50 -0500"
},
{
"Message-ID": "<CAOu0FM-3dEFw=XAKL8hMo7fCqWvdj_F2CJ8gA2_Jv+-c=Uy+sg@mail.gmail.com>"
},
{
"Subject": "Simple Test"
},
{
"From": "john doe <[email protected]>"
},
{
"To": "[email protected]"
},
{
"Content-Type": "multipart/alternative; boundary=001a113b17c26df526053177ab2e"
}
],
"email_rfc822": "Return-Path: <[email protected]>\r\nAuthentication-Results: momentum3.platform1.us-west-2.aws.cl.messagesystems.com x-tls.subject=\"/C=US/ST=California/L=Mountain View/O=Google Inc/CN=smtp.gmail.com\"; auth=pass (cipher=ECDHE-RSA-AES128-GCM-SHA256)\r\nReceived: from [209.85.218.47] ([209.85.218.47:36431] helo=mail-oi0-f47.google.com)\r\n\tby momentum3.platform1.us-west-2.aws.cl.messagesystems.com (envelope-from <[email protected]>)\r\n\t(ecelerity 4.2.17.54380 r(Core:4.2.17.4)) with ESMTPS (cipher=ECDHE-RSA-AES128-GCM-SHA256\r\n\tsubject=\"/C=US/ST=California/L=Mountain View/O=Google Inc/CN=smtp.gmail.com\") \r\n\tid 50/24-16018-343C0275; Wed, 27 Apr 2016 13:48:51 +0000\r\nReceived: by mail-oi0-f47.google.com with SMTP id x201so49251780oif.3\r\n for <[email protected]>; Wed, 27 Apr 2016 06:48:51 -0700 (PDT)\r\nDKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r\n d=sparkpost.com; s=google;\r\n h=mime-version:date:message-id:subject:from:to;\r\n bh=GkwfKMXyqEa86KQOJctC8anbAK8euidWtIonbjDvkOk=;\r\n b=eoO3+CFdUfKdvL4riMit9yhmIj2Vxu9RrfwiNrNTBfN06BLtN4nrn5R+q1FyRMCSED\r\n 0PclcxPQeGqZA8nypN0PTLjIoIihR8coSh5EFB+LhyODVi82CTilfqYiqX78+1pHu2YH\r\n 8aMhGmGobo2cCFu0XK4Z7OkzUevwmEQtuEgWA=\r\nX-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r\n d=1e100.net; s=20130820;\r\n h=x-gm-message-state:mime-version:date:message-id:subject:from:to;\r\n bh=GkwfKMXyqEa86KQOJctC8anbAK8euidWtIonbjDvkOk=;\r\n b=JTyRzWekFpiWUPWW9712h5V0x9uYKkJQ1G13pMndpzn1nzKJdpHd/zgdKKr9LUT0G2\r\n UEbP4Hxuge42JSFh/bNDf7KhJgQG5wgyf6tKN4PkU6vuRSsKFyrdrb5SxGhoMbDr0CtQ\r\n C1YE7qMzF+uj5U+14E2xz8Xo0SCXdapo+fHfjlOZ+EmBimXkaYHJ4prppg6FZHWOG6cT\r\n 3LGBALyAqOOPSPpPqSu4bzucONsZQpATEjhHL/nLxiB0kpyKb7fGOZSAyT1NyXY33BDF\r\n nuaDspOrHxg5Zlx4NH8w/vKGJqQnvez/U7NjToLoSX3+pC4s9fp/0UpnCq9glmwoQkqb\r\n AsuQ==\r\nX-Gm-Message-State: AOPr4FXSEQWw/JpJ9q4LK3lbWUBnKe8cUWsnc880Cy0IIn0J8rxE3NPJR29q8WIe0HDCFOfUxK+8OXVmSM3wxGgb\r\nMIME-Version: 1.0\r\nX-Received: by 10.202.213.22 with SMTP id m22mr3616273oig.102.1461764930525;\r\n Wed, 27 Apr 2016 06:48:50 -0700 (PDT)\r\nReceived: by 10.202.87.79 with HTTP; Wed, 27 Apr 2016 06:48:50 -0700 (PDT)\r\nDate: Wed, 27 Apr 2016 08:48:50 -0500\r\nMessage-ID: <CAOu0FM-3dEFw=XAKL8hMo7fCqWvdj_F2CJ8gA2_Jv+-c=Uy+sg@mail.gmail.com>\r\nSubject: Simple Test\r\nFrom: john doe <[email protected]>\r\nTo: [email protected]\r\nContent-Type: multipart/alternative; boundary=001a113b17c26df526053177ab2e\r\n\r\n--001a113b17c26df526053177ab2e\r\nContent-Type: text/plain; charset=UTF-8\r\n\r\nSimple Test\r\n\r\n--001a113b17c26df526053177ab2e\r\nContent-Type: text/html; charset=UTF-8\r\n\r\n<div dir=\"ltr\">Simple Test<div class=\"gmail_signature\"><div dir=\"ltr\"><div><div><br></div></div></div></div>\r\n</div>\r\n\r\n--001a113b17c26df526053177ab2e--\r\n",
"email_rfc822_is_base64": false,
"to": [
"[email protected]"
]
},
"msg_from": "[email protected]",
"webhook_id": "102293692714928055"
}
}
}
]' "http://YOUR_RELAY_WEBHOOK_URL"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment