add_action(âphpmailer_initâ,âsend_smtp_emailâ);
function send_smtp_email( $phpmailer )
{
// Information that we are sending via SMTP
$phpmailer->isSMTP();
// SMTP server name
$phpmailer->Host = âsmtp.emaillabs.net.plâ;
// SMTP authentication (true/false)
$phpmailer->SMTPAuth = true;
// SMTP port number â 25 (no encryption),
//587 (tls encryption)12 $phpmailer->Port = â587â;
// EmailLabs smtp account name
$phpmailer->Username = âACCOUNT NAMEâ;
// EmailLabs smtp account password
$phpmailer->Password = âPASSWORDâ;
// Connection encryption â tls
// or do not call the method
$phpmailer->SMTPSecure = âtlsâ;
$phpmailer->From = âYour email addressâ;
}
In the last step, try sending a test message to ensure that integration was done correctly.