[ Index ] |
|
Code source de GeekLog 1.4.1 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
Poids: | 238 lignes (9 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 2 fichiers system/pear/PEAR.php system/pear/Mail/RFC822.php |
Mail:: (5 méthodes):
factory()
send()
_sanitizeHeaders()
prepareHeaders()
parseRecipients()
factory($driver, $params = array() X-Ref |
Provides an interface for generating Mail:: objects of various types param: string $driver The kind of Mail:: object to instantiate. param: array $params The parameters to pass to the Mail:: object. return: object Mail a instance of the driver class or if fails a PEAR Error |
send($recipients, $headers, $body) X-Ref |
Implements Mail::send() function using php's built-in mail() command. param: mixed $recipients Either a comma-seperated list of recipients param: array $headers The array of headers to send with the mail, in an param: string $body The full text of the message body, including any return: mixed Returns true on success, or a PEAR_Error |
_sanitizeHeaders(&$headers) X-Ref |
Sanitize an array of mail headers by removing any additional header strings present in a legitimate header's value. The goal of this filter is to prevent mail injection attacks. param: array $headers The associative array of headers to sanitize. |
prepareHeaders($headers) X-Ref |
Take an array of mail headers and return a string containing text usable in sending a message. param: array $headers The array of headers to prepare, in an associative return: mixed Returns false if it encounters a bad address, |
parseRecipients($recipients) X-Ref |
Take a set of recipients and parse them, returning an array of bare addresses (forward paths) that can be passed to sendmail or an smtp server with the rcpt to: command. param: mixed Either a comma-seperated list of recipients return: mixed An array of forward paths (bare addresses) or a PEAR_Error |
Généré le : Wed Nov 21 12:27:40 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |