ezcMailVariableSet is an internal class that can be used to parse mail directly from a string variable in your script.
The variable should contain the complete mail message in RFC822 format.
Example:
Source for this file: /Mail/src/transports/variable/var_set.php
Version: | //autogen// |
public ezcMailVariableSet |
__construct(
$mail
)
Constructs a new set that contains one mail from $mail. |
public string |
getNextLine(
)
Returns one line of data from the current mail in the set. |
public bool |
hasData(
)
Returns whether the variable set contains mails. |
public bool |
nextMail(
)
Moves the set to the next mail and returns true upon success. |
Constructs a new set that contains one mail from $mail.
Name | Type | Description |
---|---|---|
$mail |
string |
Returns one line of data from the current mail in the set.
Null is returned if there is no current mail in the set or the end of the mail is reached.
Method | Description |
---|---|
ezcMailParserSet::getNextLine() |
Returns one line of data from the current mail in the set including the ending linebreak. |
Returns whether the variable set contains mails.
Method | Description |
---|---|
ezcMailParserSet::hasData() |
Returns true if mail data is available for parsing. |
Moves the set to the next mail and returns true upon success.
False is returned if there are no more mail in the set (always).
Method | Description |
---|---|
ezcMailParserSet::nextMail() |
Moves the set to the next mail and returns true upon success. |