-
Notifications
You must be signed in to change notification settings - Fork 1
Configuring SMTP
OneBadNinja edited this page Nov 25, 2017
·
1 revision
Since HandyMail utilises the PHPMailer library for sending emails, it also makes use of its SMTP options.
To utilize SMTP, the use_smtp() method must be called prior to prepare_mail(). It is configured by accepting a single array of parameters. The following array elements are parsed:
- Host: [str] Hostname
- Port: [int] Port
- Username: [str] Username
- Password: [str] Password
- SMTPSecure: [str] default "tls"
$params = array(
"Host" => "smtp.postmarkapp.com",
"Port" => 587,
"Username" => "someusername",
"Password" => "somepassword"
);
$form->use_smtp($params);