SmtpMailer::__construct
creates and configures the mailer
Signature
public function __construct([boolean
$host = false,
[boolean
$user = false,
[boolean
$pass = false,
[string
$encryption = 'fallback',
[boolean
$charset = false,
[boolean
$port = false,
[integer
$smtpDebug = 0]]]]]]] )
Parameters
$host
—
boolean
- the SMTP server hostname, or `false` to use the default from the config API.
$user
—
boolean
- the SMTP username, or `false` to use the default from the config API.
$pass
—
boolean
- the SMTP password, or `false` to use the default from the config API.
$encryption
—
string
- the SMTP encryption. 'tls' or 'ssl' or false to disable encryption.
Set to 'fallback' to use the default from the config API
$charset
—
boolean
- the charset to use, or `false` to use the default from the config API.
$port
—
boolean
- the port to use, or `false` to use the default from the config API.
$smtpDebug
—
integer