[ Index ]
 

Code source de SPIP Agora 1.4

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/Pear/ -> Mail.php (sommaire)

(pas de description)

Poids: 201 lignes (8 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 2 fichiers
 Pear/Mail/RFC822.php
 Pear/PEAR.php

Définit 1 class

Mail:: (4 méthodes):
  factory()
  send()
  prepareHeaders()
  parseRecipients()


Classe: Mail  - X-Ref

PEAR's Mail:: interface. Defines the interface for implementing
mailers under the PEAR hierarchy, and provides supporting functions
useful in multiple mailer backends.

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

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: array An array of forward paths (bare addresses).



Généré le : Sat Feb 24 14:40:03 2007 par Balluche grâce à PHPXref 0.7