Mail: ezcMailDeliveryStatus
[ ]
[ Display example ] [ Mail listing example ] [ Rfcs ]
[ ]
[ ]
[ ]
[ ]
Class: ezcMailDeliveryStatus
|
Mail part used for sending delivery status message. [
source]
This mail part consists of only headers. The headers are organized into section. There is a per-message section ($message), and several per-recipient sections ($recipients).
To access the headers of this part, look at the following example:
1. // $delivery is an object of type ezcMailDeliveryStatus
2. $reportingMta = $delivery->message["Reporting-MTA"];
3. $date = $delivery->message["Arrival-Date"];
4. // get the status received from the first recipient
5. $status1 = $delivery->recipients[0]["Status"];
6. // get the status received from the second recipient
7. $status2 = $delivery->recipients[1]["Status"];
Parents
ezcMailPart
|
--ezcMailDeliveryStatus
Properties
|
ezcMailHeadersHolder |
read/write
|
$message
Holds the per-message headers of the delivery-status message. |
|
ArrayObject(ezcMailHeadersHolder) |
read/write
|
$recipients
Holds the recipients of the delivery-status message. |
Method Summary
|
public ezcMailDeliveryStatus |
__construct(
)
Constructs a new DeliveryStatus part. |
|
public int |
createRecipient(
)
Adds a new recipient to this delivery-status message and returns the index of the last added recipient. |
|
public string |
generateBody(
)
Returns the generated text body of this part as a string. |
|
public string |
generateHeaders(
)
Returns the headers set for this part as a RFC822 compliant string. |
Inherited Methods
From
ezcMailPart :
Methods
__construct
ezcMailDeliveryStatus __construct(
)
Constructs a new DeliveryStatus part.
Redefinition of
createRecipient
int createRecipient(
)
Adds a new recipient to this delivery-status message and returns the index of the last added recipient.
generateBody
string generateBody(
)
Returns the generated text body of this part as a string.
Redefinition of
generateHeaders
string generateHeaders(
)
Returns the headers set for this part as a RFC822 compliant string.
This method does not add the required two lines of space to separate the headers from the body of the part.
See also:
ezcMailPart::setHeader().
Redefinition of
Last updated: Wed, 28 Nov 2007