opensource-socialnetwork / SMTP

This component will override default emails notificatios and allows ossn system to send notification emails using your smtp server
8 stars 9 forks source link

[E] secure = 'ssl' #10

Closed lianglee closed 1 year ago

lianglee commented 1 year ago

Michael told me if port is 465 then smtpsecure need to be ssl

lianglee commented 1 year ago

Setting

if($settings->port == "465"){   
    $mail->SMTPSecure = "ssl";
}       

Won't work for many providers. Seems some expecting TLS instead.

lianglee commented 1 year ago

Sticking with the rule

$settings->port == "587" = TLS $settings->port == "465 = SSL