Mail::factory()

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

Synopsis

require_once 'Mail.php';

object &factory (string $backend [, array $params = array()])

Beschreibung

Creates a instance of a backend-specific mailer class.

Parameter

Rückgabewert

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

Fehler-Meldungen

Tabelle 47-1. Mögliche Fehler-Arten

Error codeError messageReasonSolution
NULL „Unable to find class for driver xxx Mailer backend class was not found. Check the $backend parameter, if correct reinstall and/or update your Mail package.

Hinweise

Diese Methode sollte statisch aufgerufen werden..

Siehe auch

„Introduction“