[ Index ]
 

Code source de GeekLog 1.4.1

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/system/pear/Mail/ -> smtp.php (sommaire)

(pas de description)

Poids: 348 lignes (12 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

Mail_smtp:: (5 méthodes):
  Mail_smtp()
  _Mail_smtp()
  send()
  disconnect()
  _error()


Classe: Mail_smtp  - X-Ref

SMTP implementation of the PEAR Mail interface. Requires the Net_SMTP class.

Mail_smtp($params)   X-Ref
Constructor.

Instantiates a new Mail_smtp:: object based on the parameters
passed in. It looks for the following parameters:
host        The server to connect to. Defaults to localhost.
port        The port to connect to. Defaults to 25.
auth        SMTP authentication.  Defaults to none.
username    The username to use for SMTP auth. No default.
password    The password to use for SMTP auth. No default.
localhost   The local hostname / domain. Defaults to localhost.
timeout     The SMTP connection timeout. Defaults to none.
verp        Whether to use VERP or not. Defaults to false.
debug       Activate SMTP debug mode? Defaults to false.
persist     Should the SMTP connection persist?

If a parameter is present in the $params array, it replaces the
default.

param: array Hash containing any parameters different from the

_Mail_smtp()   X-Ref
Destructor implementation to ensure that we disconnect from any
potentially-alive persistent SMTP connections.


send($recipients, $headers, $body)   X-Ref
Implements Mail::send() function using SMTP.

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

disconnect()   X-Ref
Disconnect and destroy the current SMTP connection.

return: boolean True if the SMTP connection no longer exists.

_error($text, &$error)   X-Ref
Build a standardized string describing the current SMTP error.

param: string $text  Custom string describing the error context.
param: object $error Reference to the current PEAR_Error object.
return: string       A string describing the current SMTP error.



Généré le : Wed Nov 21 12:27:40 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics