string $backend - the name of the backend "mail","smtp", "sendmail"
array $param - a array of backend specific parameters.
List of parameter for the backends
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.
Table 36-1. Possible PEAR_Error values
Error code | Error message | Reason | Solution |
---|---|---|---|
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. |