MDN_HEADER
MDN_HEADER
Message Disposition Notifications (RFC 3798).
$_headers : \Horde_Mime_Headers
The Horde_Mime_Headers object.
__construct(\Horde_Mime_Headers $headers)
Constructor.
\Horde_Mime_Headers | $headers |
originalMessageText(string $text)
When generating the MDN, should we return the enitre text of the original message? The default is no - we only return the headers of the original message. If the text is passed in via this method, we will return the entire message.
string | $text | The text of the original message. |
generate(boolean $action, boolean $sending, string $type, string $name, \Horde_Mail_Transport $mailer, array $opts = array(), array $mod = array(), array $err = array())
Generate the MDN according to the specifications listed in RFC 3798 [3].
boolean | $action | Was this MDN type a result of a manual action on part of the user? |
boolean | $sending | Was this MDN sent as a result of a manual action on part of the user? |
string | $type | The type of action performed by the user. Per RFC 3798 [3.2.6.2] the following types are valid:
|
string | $name | The name of the local server. |
\Horde_Mail_Transport | $mailer | Mail transport object. |
array | $opts | Additional options:
|
array | $mod | The list of modifications. Per RFC 3798 [3.2.6.3] the following modifications are valid:
|
array | $err | If $mod is 'error', the additional information to provide. Key is the type of modification, value is the text. |