Mail part or mail digest parts.
This class is used to insert mail into mail.
This example assumes that the mail object to digest is availble in the $digest variable:
Source for this file: /Mail/src/parts/rfc822_digest.php
ezcMailPart | --ezcMailRfc822Digest
Version: | //autogen// |
string | read/write |
$mail
The mail object to digest. |
From ezcMailPart | |
---|---|
protected |
ezcMailPart::$properties
|
public ezcMailRfc822Digest |
__construct(
$mail
)
Constructs a new ezcMailDigest with the mail $mail. |
public string |
generateBody(
)
Returns the body part of this mail consisting of the digested mail. |
From ezcMailPart | |
---|---|
public ezcMailPart |
ezcMailPart::__construct()
Constructs a new mail part. |
public void |
ezcMailPart::appendExcludeHeaders()
The array $headers will be excluded when the headers are generated. |
public string |
ezcMailPart::generate()
Returns the complete mail part including both the header and the body as a string. |
public abstract string |
ezcMailPart::generateBody()
Returns the body of this part as a string. |
public string |
ezcMailPart::generateHeaders()
Returns the headers set for this part as a RFC 822 string. |
public mixed |
ezcMailPart::getHeader()
Returns the RAW value of the header $name. |
protected string |
ezcMailPart::getHeaderCharset()
Returns the charset registered for the header $name. |
public void |
ezcMailPart::setHeader()
Sets the header $name to the value $value and its charset to $charset. |
protected void |
ezcMailPart::setHeaderCharset()
Sets the charset of the header $name to $value. |
public void |
ezcMailPart::setHeaders()
Adds the headers $headers. |
Constructs a new ezcMailDigest with the mail $mail.
Name | Type | Description |
---|---|---|
$mail |
ezcMail |
Method | Description |
---|---|
ezcMailPart::__construct() |
Constructs a new mail part. |
Returns the body part of this mail consisting of the digested mail.
Method | Description |
---|---|
ezcMailPart::generateBody() |
Returns the body of this part as a string. |