Set WeberTrivia.com to be my default homepage.   Suggest a Question                                               

Suggest A Question : :  Frequently Asked Questions : :  Search : :  Relevant Manuals : : 
PHP Questions : :  Linux Questions : :  MySQL Questions : : 
home  [ Login ] 

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.

Who's Online
Guest Users: 7
Google
Web
WeberTrivia
WeberDev
WeberForums
 Free Sample Chapters  Free Sample Chapters
  Deliver First Class Web Sites: 101 Essential Checklists
Want to learn how to make your web sites usable and accessible? Want to ensure that your sites meet current best practice, without spending hours trawling through incomprehensible specifications and recommendations from dozens of different books, research papers, and web sites? Want to make sure that the sites you build are "right the first time," requiring no costly redevelopments?

More Sample Chapters

PHP General