add config for contact page

This commit is contained in:
Alexandre L 2023-06-12 15:47:02 -04:00
parent 6d836799cf
commit 3d759b8b54
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,5 @@
<?php
$smtp_password = '';
?>

View File

@ -6,6 +6,7 @@
require 'PHPMailer/src/Exception.php';
require 'PHPMailer/src/PHPMailer.php';
require 'PHPMailer/src/SMTP.php';
require '../config/PRIVATE/contact.php';
$lang_folder = $_GET['contact-language']=="en"?"/pages/en/":"/pages/fr/";
if(!filter_var($_GET['contact-email'], FILTER_VALIDATE_EMAIL) || strlen($_GET['contact-message'])==0 || strlen($_GET['contact-name'])==0 || $_GET['contact-email-2'] != ""){
@ -24,7 +25,7 @@
$mail->Host = 'qube.teleqom.org';
$mail->SMTPAuth = true;
$mail->Username = 'info@teleqom.org';
$mail->Password = 'RE32uPrias!opijk##';
$mail->Password = $smtp_password;
$mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS;
$mail->Port = 587;