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

if local SMTP does not support STARTTLS #6

Closed rikMY closed 2 years ago

rikMY commented 6 years ago

the local PHP mail client always tries TLS AUTH SMTP, but if it fails there is nothing in this script to switch it off. Adding these two line to the two functions will switch it off if your SMTP does not use TLS. It's not a clean solution but it works.

$mail->SMTPSecure = false; $mail->SMTPAutoTLS = false;

redegelde commented 2 years ago

old thread, bet where to add/change this?