You are here: Help » HTTP POST Documentation » What HTTP POST parameters are available to my script?

What HTTP POST parameters are available to my script?


The headers of your message, the body, and all attachments will be made available to your script.

Attachments


The attachments will be made available as though they are file uploads from a web form. In PHP, you can find these in the $_FILES superglobals array.

Message body and basic headers


All fields described below will be sent as HTTP POST parameters, if present. In PHP, these are found in the $_POST superglobals array:

subject: The message subject
sender: The full message sender (for example My Name <myname@address.com>)
sender_address: The message sender's email address (for example myname@address.com)
sender_name: The message sender's name (for example My Name)
from: The full from header (for example My Name <myname@address.com>)
from_address: The email address in the from header (for example myname@address.com)
from_name: The name in the from header (for example My Name)
to: The recipient (for example My Name <myname@address.com>)
to_address: The email address of the recipient (for example myname@address.com)
to_name: The name of the recipient (for example My Name)
body: The body of the email
body(1): The HTML body, if present
body(n): Other text parts on the message, if present (2, 3, 4...)
sent: The date the message was sent
remote_host: The host we received the message from (for example fg-out-1718.google.com)
remote_ip: The ip address we received the message from (for example 72.14.220.156)

Advanced headers


In addition to these, every other header found on the message will be available, prepended by "rfc822_header_":

rfc822_header_received: For example, by 10.86.60.6 with HTTP; Fri, 4 Jan 2008 14:20:54 -0800 (PST)
rfc822_header_message-id: For example, <9a9906542551f1ga866bdafb5454@mail.gmail.com>
rfc822_header_date: For example, Fri, 4 Jan 2008 14:20:54 -0800
rfc822_header_from: For example, "My Name" <myname@address.com>
rfc822_header_to: For example, myuser@myemail2httpdomain.com
rfc822_header_subject: For example, Re: hi
rfc822_header_mime-version: For example, 1.0
rfc822_header_content-type: For example, text/plain; charset=ISO-8859-1
rfc822_header_content-transfer-encoding: For example, 7bit
rfc822_header_content-disposition: For example, inline


Last updated Aug 31 2008

Copyright © 2006-2009 Trevose Consultants Ltd.
Contact us | Terms of Use