CharSet = 'UTF-8'; // Utiliser UTF-8 $mail->Encoding = 'base64'; // Encodage du contenu $mail->isSMTP(); //Enable SMTP debugging // 0 = off (for production use) // 1 = client messages // 2 = client and server messages $mail->SMTPDebug = 0; // $mail->Debugoutput = 'html'; $mail->Host = 'smtp.gmail.com'; // $mail->Host = gethostbyname('smtp.gmail.com'); // if your network does not support SMTP over IPv6 $mail->Port = 587; $mail->SMTPSecure = 'tls'; $mail->SMTPAuth = true; $mail->Username = "gmebene@gmail.com"; $mail->Password = "Moritio1973"; $mail->setFrom('gmebene@gmail.com', 'Messagerie Automatique EBENE'); // $mail->addReplyTo('gmebene@gmail.com', 'Messagerie Automatique EBENE'); $mail->addReplyTo('imugabo@radiant.rw', 'HEAD OF CLAIMS MEDICARE'); $mail->addReplyTo('prugira@radiant.rw', 'Chef de Section Prestations'); // à activer en cas de besoin // $mail->msgHTML(file_get_contents('contents.html'), dirname(__FILE__));