Mail object.
More...
List of all members.
|
Public Methods |
| eZMail () |
| receiverEmailText () |
| receiverText () |
| receiverTextList () |
| receiverElements () |
| ccElements () |
| bccElements () |
| replyTo () |
| sender () |
| senderText () |
| setReceiverElements ($toElements) |
| setReceiver ($email,$name=false) |
| setReceiverText ($text) |
| addReceiver ($email,$name=false) |
| setReplyTo ($email,$name=false) |
| setSender ($email,$name=false) |
| setSenderText ($text) |
| setCcElements ($newCc) |
| addCc ($email,$name=false) |
| setBccElements ($newBcc) |
| addBcc ($email,$name=false) |
| extraHeaders ($headers) |
| addExtraHeader ($headerName,$headerValue) |
| setExtraHeaders ($headers) |
| messageID () |
| setMessageID ($newMessageID) |
| references () |
| setReferences ($newReference) |
| subject () |
| setSubject ($newSubject) |
| body () |
| setBody ($newBody) |
| blankNewlines ($text) |
| headers () |
| headerText () |
Static Public Methods |
& | splitList ($emails) |
| validate ($address) |
| stripEmail ($address) |
| composeEmailName ($item,$key=false) |
| composeEmailItems ($items,$join=true,$key=false) |
Public Attributes |
| ReceiverElements |
| \privatesection
|
Detailed Description
Mail object.
Class for storing the details about en email and providing text serialization.
Definition at line ezmail.php.
Constructor & Destructor Documentation
Member Function Documentation
eZMail::addBcc |
( |
$ |
email, |
|
|
$ |
name = false |
|
) |
|
|
|
Adds a new Bcc address.
Definition at line ezmail.php. |
eZMail::addCc |
( |
$ |
email, |
|
|
$ |
name = false |
|
) |
|
|
|
Adds a new Cc address.
Definition at line ezmail.php. |
eZMail::addExtraHeader |
( |
$ |
headerName, |
|
|
$ |
headerValue |
|
) |
|
|
|
Adds the headers $headerName with header value $headerValue to the extra headers.
Definition at line ezmail.php. |
eZMail::addReceiver |
( |
$ |
email, |
|
|
$ |
name = false |
|
) |
|
|
|
Returns the addresses which should get a blind carbon copy.
Definition at line ezmail.php. |
eZMail::blankNewlines |
( |
$ |
text |
) |
|
|
|
- Returns:
-
a text which does not contain newlines, newlines are converted to spaces.
Definition at line ezmail.php.
Referenced by headerText(). |
|
Returns the addresses which should get a carbon copy.
Definition at line ezmail.php. |
eZMail::composeEmailItems |
( |
$ |
items, |
|
|
$ |
join = true, |
|
|
$ |
key = false |
|
) |
[static] |
|
eZMail::composeEmailName |
( |
$ |
item, |
|
|
$ |
key = false |
|
) |
[static] |
|
eZMail::extraHeaders |
( |
$ |
headers |
) |
|
|
|
- Returns:
-
an array with headers, each header item is an associative array with the keys
name and content .
Definition at line ezmail.php.
References headers().
Referenced by setExtraHeaders(). |
|
Composes a text field out of all the headers and returns it.
Definition at line ezmail.php.
References headers(). |
|
Returns the message ID format : <number@serverID> Read in the RFC's if you want to know more about it..
Definition at line ezmail.php. |
eZMail::receiverElements |
( |
|
) |
|
|
eZMail::receiverEmailText |
( |
|
) |
|
|
eZMail::receiverTextList |
( |
|
) |
|
|
|
Returns the messageID that this message is a reply to.
Definition at line ezmail.php. |
|
Returns the receiver address.
Definition at line ezmail.php. |
|
Returns the sender address.
Definition at line ezmail.php. |
eZMail::setBccElements |
( |
$ |
newBcc |
) |
|
|
|
Sets the bcc addresses.
Definition at line ezmail.php. |
eZMail::setBody |
( |
$ |
newBody |
) |
|
|
eZMail::setCcElements |
( |
$ |
newCc |
) |
|
|
|
Sets the cc addresses.
Definition at line ezmail.php. |
eZMail::setExtraHeaders |
( |
$ |
headers |
) |
|
|
eZMail::setMessageID |
( |
$ |
newMessageID |
) |
|
|
|
Sets the message ID. This is a server setting only so BE CAREFULL WITH THIS.
Definition at line ezmail.php. |
eZMail::setReceiver |
( |
$ |
email, |
|
|
$ |
name = false |
|
) |
|
|
eZMail::setReceiverElements |
( |
$ |
toElements |
) |
|
|
eZMail::setReceiverText |
( |
$ |
text |
) |
|
|
eZMail::setReferences |
( |
$ |
newReference |
) |
|
|
|
Sets the messageID that this message is a reply to.
Definition at line ezmail.php. |
eZMail::setReplyTo |
( |
$ |
email, |
|
|
$ |
name = false |
|
) |
|
|
|
Sets the receiver address.
Definition at line ezmail.php. |
eZMail::setSender |
( |
$ |
email, |
|
|
$ |
name = false |
|
) |
|
|
|
Sets the sender address.
Definition at line ezmail.php. |
eZMail::setSenderText |
( |
$ |
text |
) |
|
|
|
Sets the sender address, the email and name will be extracted from $text.
Definition at line ezmail.php. |
eZMail::setSubject |
( |
$ |
newSubject |
) |
|
|
|
Sets the subject of the mail.
Definition at line ezmail.php. |
& eZMail::splitList |
( |
$ |
emails |
) |
[static] |
|
|
Splits a list of email addresses into an array where each entry is an email address.
Definition at line ezmail.php. |
eZMail::stripEmail |
( |
$ |
address |
) |
[static] |
|
|
Static function for extracting an e-mail from text
Returns the first valid e-mail in address, returns false if no e-mail addresses found
Definition at line ezmail.php. |
|
Returns the subject.
Definition at line ezmail.php. |
eZMail::validate |
( |
$ |
address |
) |
[static] |
|
The documentation for this class was generated from the following file:
|