Insert mail options for phpmailer

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
uwiii
User
Posts: 12

Insert mail options for phpmailer

Post 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
)
);


Webmaster
User
Posts: 9425

Post 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.


Post Reply