Mail: ezcMailRfc822Digest
[ ]
[ Display example ] [ Mail listing example ] [ Rfcs ]
[ ]
[ ]
[ ]
[ ]
Class: ezcMailRfc822Digest
|
Mail part or mail digest parts. [
source]
This class is used to insert mail into mail.
This example assumes that the mail object to digest is availble in the $digest variable:
1. $mail = new ezcMail();
2. $mail->from = new ezcMailAddress( 'sender@example.com', 'Largo LaGrande' );
3. $mail->addTo( new ezcMailAddress( 'receiver@example.com', 'Wally B. Feed' ) );
4. $mail->subject = "This is the subject of the mail with a mail digest.";
5. $textPart = new ezcMailText( "This is the body of the mail with a mail digest." );
6.
7. $mail->body = new ezcMailMultipartMixed( $textPart, new ezcMailRfc822Digest( $digest ) );
8.
9. $transport = new ezcMailMtaTransport();
10. $transport->send( $mail );
Parents
ezcMailPart
|
--ezcMailRfc822Digest
Properties
|
string |
read/write
|
$mail
The mail object to digest. |
Method Summary
|
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. |
Inherited Methods
From
ezcMailPart :
Methods
__construct
ezcMailRfc822Digest __construct(
ezcMail
$mail )
Constructs a new ezcMailDigest with the mail $mail.
Parameters
| Name |
Type |
Description |
$mail |
ezcMail |
|
Redefinition of
generateBody
string generateBody(
)
Returns the body part of this mail consisting of the digested mail.
Redefinition of
Last updated: Mon, 17 Dec 2007