ldc-groupe/rgpd/professionnels/functions.php
2020-12-16 14:31:57 +01:00

27 lines
No EOL
858 B
PHP

<?php
function configure_smtp(PHPMailer\PHPMailer\PHPMailer $phpmailer){
$phpmailer->IsHTML(true);
//Pour ne pas avoir de soucis par la suite il est conseillé de donner l' encodage
$phpmailer->CharSet = "utf-8";
$phpmailer->isSMTP(); //switch to smtp
$phpmailer->Host = '192.168.31.254'; // A MODIFIER SELON L'ENV
$phpmailer->SMTPAuth = false;
$phpmailer->Port = '25';
$phpmailer->Username = '';
$phpmailer->Password = '';
$phpmailer->SMTPSecure = false;
// $phpmailer->AddAddress('sebastien.hattry@ldc.fr'); // A MODIFIER
$phpmailer->AddAddress('rgpd@ldc.fr'); // A MODIFIER
$phpmailer->AddBCC('sylvain.gouet@ldc.fr'); // A MODIFIER
$phpmailer->SMTPAutoTLS = false;
$phpmailer->SMTPOptions = array(
'ssl' => array(
'verify_peer' => false,
'verify_peer_name' => false,
'allow_self_signed' => true
)
);
}
?>