Automatically store the POST response from your script (up to 256 characters). Use this to debug or keep verification data output by your remote script.

You can store POSTed emails at MailNuggets and view the text, HTML and raw versions, and the heirarchical data structure parsed from the raw email.

Create an unlimited number of receiving addresses manually, or via the API.

MailNuggets can send emails over HTTP POST using the following data structures: raw email, key value pairs, and JSON.

Raw Email
The raw email format sends the entire original email as the $_POST['email'] value. This is the best solution for those who wish to parse the email themselves. A recommended way to parse the raw email is Pear's Mail_mimeDecode.

Delivered-to may be an Array
The delivered-to value may be an array if the mail was sent to one or more forwarding addresses prior to reaching the mail@youraccount.mailnuggets.com address. So, if your email goes like this:
forwardingaddress@gmail.com -> mail@youraccount.mailnuggets.com -> POST to custom script, the delivered-to[0] value should be mail@youraccount.mailnuggets.com and delivered-to[1] value should be forwardingaddress@gmail.com.

Validate POSTs Using the message-id-hash
The message-id-hash is an MD5 hash generated by concatenating the message-id and API secret key like so: md5($_POST['message-id'] . $apiSecretKey). This can be used to add assurance that POSTs to your remote script are from the MailNuggets server. NOTE: The message-id includes the '' that enclose it.

Send Attachments to Amazon S3
When attachments are sent to Amazon S3, the POSTed attachment array values will look like:

attachment[IndexValue][s3-bucket-name]

attachment[IndexValue][s3-object-name]

attachment[IndexValue][content-type]

attachment[IndexValue][size]

attachment[IndexValue][name]

Send Attachments to Google Docs
When attachments are sent to Google Docs, the POSTed attachment array values will look like:

attachment[IndexValue][google-docs-collection-id]

attachment[IndexValue][google-docs-collection-name]

attachment[IndexValue][google-docs-location]

attachment[IndexValue][google-docs-id]

attachment[IndexValue][content-type]

attachment[IndexValue][size]

attachment[IndexValue][name]

JSON
This option POSTs a JSON formatted string as the $_POST['email'] value. This string includes the entire email including headers, body parts and attachments (which are base64 encoded).

This is the easiest way to POST your email while retaining the heirarchical structure of the header and body parts. You can import the JSON string and convert it to a PHP object or array using json_decode() in PHP 5.2.0 or greater.