PEAR Mail

From Triangle Wiki

Jump to: navigation, search

Introduction

PEAR Mail provides a framework for sending Email via several backend methods:

  • mail - Sends a mail using PHP's built-in mail() function.
  • sendmail - Sends a mail using a sendmail program.
  • smtp - Sends a mail directly connecting to a smtp server.

Parameters For SMTP

  • $params["host"] - The server to connect. Default is localhost .
  • $params["port"] - The port to connect. Default is 25 .
  • $params["auth"] - Whether or not to use SMTP authentication. Default is FALSE.
  • $params["username"] - The username to use for SMTP authentication.
  • $params["password"] - The password to use for SMTP authentication.
  • $params["localhost"] - The value to give when sending EHLO or HELO. Default is localhost
  • $params["timeout"] - The SMTP connection timeout. Default is NULL (no timeout).
  • $params["verp"] - Whether to use VERP or not. Default is FALSE.
  • $params["debug"] - Whether to enable SMTP debug mode or not. Default is FALSE.
  • $params["persist"] - Indicates whether or not the SMTP connection should persist over multiple calls to the send() method.

External Links

Navigation

[Edit Navigation]

Personal tools