Page 1 of 1

Insert mail options for phpmailer

Posted: Thu Jan 04, 2018 4:22 pm
by uwiii

Hello,

does anyone know how to insert the smtpOptions into $Email in EmailSending event without getting a blank page?

$Email->SMTPOptions = array(
'ssl' => array(
'verify_peer' => false,
'verify_peer_name' => false,
'allow_self_signed' => true
)
);


Re: Insert mail options for phpmailer

Posted: Thu Jan 04, 2018 4:40 pm
by Webmaster

If you are using v2018, your code should be fine, but there is no need to set those options if you use SSL/TLS as they are already set by default. If you use older versions, you cannot set it that way and you may need to customize the template or generated script.