Scriptindex.de

[ Menü ]

Home
News
Scripts
Neuzugänge
Suchen
Bücher
Manuals

[ Inhalt ]

Script eintragen
Tutorial eintragen
Newsletter
Umfragen
Link zu uns
Werbung bei uns
Kontakt
Impressum

[ Statistik ]

Hits gesamt: 5202168
Hits Heute: 271
max. Hits (10.07.07): 6964
User Online: 46
Scripts: 2828

[ Partner ]

CodeBase
I.S.U.M.
LUG Bayreuth
PEAR NEWS
PHP Classes

[ Facebook ]

[ Eigene Domain? ]

[ Buchtipp ]

HTML Ge- Packt. Die Ge- Packte Referenz
HTML Ge- Packt. Die Ge- Packte Referenz

Manuals > PEAR > Mail::factory()

Mail::factory()

Mail::factory() -- creates a mailer instance

Description

Creates a instance of a backend-specific mailer class.

Parameter

  • string $backend - the name of the backend "mail","smtp", "sendmail"

  • array $param - a array of backend specific parameters.

    List of parameter for the backends

    • mail

      • no additional options

    • sendmail

      • $param["sendmail_path"] - The location of the sendmail program on the filesystem. Default is /usr/bin/sendmail

      • $param["sendmail_args"] - Additional parameters to pass to the sendmail program.

    • smtp

      • $param["host"] - The server to connect. Default is localhost

      • $param["port"] - The port to connect. Default is 25

      • $param["auth"] - Whether or not to use SMTP authentication. Default is FALSE

      • $param["username"] - The username to use for SMTP authentication.

      • $param["password"] - The password to use for SMTP authentication.

Return value

object - a specific Mail instance or a PEAR_Error object, if fails

Note

This function should be called statically.


Copyright 1998 - 2009 by I.S.U.M.