add config for contact page
This commit is contained in:
parent
6d836799cf
commit
3d759b8b54
5
config/PRIVATE/contact.php.example
Normal file
5
config/PRIVATE/contact.php.example
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
$smtp_password = '';
|
||||||
|
|
||||||
|
?>
|
@ -6,6 +6,7 @@
|
|||||||
require 'PHPMailer/src/Exception.php';
|
require 'PHPMailer/src/Exception.php';
|
||||||
require 'PHPMailer/src/PHPMailer.php';
|
require 'PHPMailer/src/PHPMailer.php';
|
||||||
require 'PHPMailer/src/SMTP.php';
|
require 'PHPMailer/src/SMTP.php';
|
||||||
|
require '../config/PRIVATE/contact.php';
|
||||||
|
|
||||||
$lang_folder = $_GET['contact-language']=="en"?"/pages/en/":"/pages/fr/";
|
$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'] != ""){
|
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->Host = 'qube.teleqom.org';
|
||||||
$mail->SMTPAuth = true;
|
$mail->SMTPAuth = true;
|
||||||
$mail->Username = 'info@teleqom.org';
|
$mail->Username = 'info@teleqom.org';
|
||||||
$mail->Password = 'RE32uPrias!opijk##';
|
$mail->Password = $smtp_password;
|
||||||
$mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS;
|
$mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS;
|
||||||
$mail->Port = 587;
|
$mail->Port = 587;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user