Last active
October 19, 2018 10:54
-
-
Save waseem/70a59519b5e20d7dab846a6ef4d9360a to your computer and use it in GitHub Desktop.
Mailgun Webhook POST Request
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Message-Id"=>"<[email protected]>", | |
"X-Mailgun-Sid"=>"WyIwNzI5MCIsICJhbGljZUBleGFtcGxlLmNvbSIsICI2Il0=", | |
"attachment-count"=>"1", | |
"body-plain"=>"", | |
"code"=>"550", | |
"domain"=>"barcelonites.com", | |
"error"=>"5.1.1 The email account that you tried to reach does not exist. Please try\n5.1.1 double-checking the recipient's email address for typos or\n5.1.1 unnecessary spaces. Learn more at\n5.1.1 http://support.example.com/mail/bin/answer.py", | |
"event"=>"bounced", | |
"message-headers"=>"[[\"Received\", \"by luna.mailgun.net with SMTP mgrt 8734663311733; Fri, 03 May 2013 18:26:27 +0000\"], [\"Content-Type\", [\"multipart/alternative\", {\"boundary\": \"eb663d73ae0a4d6c9153cc0aec8b7520\"}]], [\"Mime-Version\", \"1.0\"], [\"Subject\", \"Test bounces webhook\"], [\"From\", \"Bob <[email protected]>\"], [\"To\", \"Alice <[email protected]>\"], [\"Message-Id\", \"<[email protected]>\"], [\"List-Unsubscribe\", \"<mailto:u+na6tmy3ege4tgnldmyytqojqmfsdembyme3tmy3cha4wcndbgaydqyrgoi6wszdpovrhi5dinfzw63tfmv4gs43uomstimdhnvqws3bomnxw2jtuhusteqjgmq6tm@barcelonites.com>\"], [\"X-Mailgun-Sid\", \"WyIwNzI5MCIsICJhbGljZUBleGFtcGxlLmNvbSIsICI2Il0=\"], [\"X-Mailgun-Variables\", \"{\\\"my_var_1\\\": \\\"Mailgun Variable #1\\\", \\\"my-var-2\\\": \\\"awesome\\\"}\"], [\"Date\", \"Fri, 03 May 2013 18:26:27 +0000\"], [\"Sender\", \"[email protected]\"]]", | |
"my-var-2"=>"awesome", | |
"my_var_1"=>"Mailgun Variable #1", | |
"recipient"=>"[email protected]", | |
"signature"=>"9f0be5b57d8bdb97c8f2bb982629165366bd63d5a0f9f3a09653a54b49af272a", | |
"timestamp"=>"1462978751", | |
"token"=>"b2ad5a88f4aa8ac2f8f1172a717457064c7509ad2fa0e79ec1", | |
"attachment-1"=>#<ActionDispatch::Http::UploadedFile:0x00000006749a18 @original_filename="message.mime", @content_type="application/octet-stream", @headers="Content-Disposition: form-data; name=\"attachment-1\"; filename=\"message.mime\"\r\nContent-Type: application/octet-stream\r\nContent-Length: 1187\r\n", @tempfile=#<File:/tmp/RackMultipart20160511-1863-1x703r1>> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment