From a0ed72a0e1e70b3c31ad2274b786c51587e8f9c2 Mon Sep 17 00:00:00 2001 From: "alexandre.l" Date: Mon, 12 Jun 2023 15:52:30 -0400 Subject: [PATCH] update variables contact.php --- config/PRIVATE/contact.php.example | 5 +++++ php/contact.php | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/config/PRIVATE/contact.php.example b/config/PRIVATE/contact.php.example index 28541f3..21ed898 100644 --- a/config/PRIVATE/contact.php.example +++ b/config/PRIVATE/contact.php.example @@ -1,5 +1,10 @@ \ No newline at end of file diff --git a/php/contact.php b/php/contact.php index 5f4b221..8bacb31 100644 --- a/php/contact.php +++ b/php/contact.php @@ -14,7 +14,7 @@ die(); } - $receiver_email = "vincentmd@protonmail.com"; + $receiver_email = $smtp_to_email; $message = "Contact: ".$_GET['contact-name']."\nEmail: ".$_GET['contact-email']."\nMessage:\n".$_GET['contact-message']; @@ -22,14 +22,14 @@ try{ $mail->isSMTP(); - $mail->Host = 'qube.teleqom.org'; + $mail->Host = $smtp_host; $mail->SMTPAuth = true; - $mail->Username = 'info@teleqom.org'; + $mail->Username = $smtp_username; $mail->Password = $smtp_password; $mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS; $mail->Port = 587; - $mail->setFrom('info@teleqom.org', 'Mailer'); + $mail->setFrom($smtp_from_email, 'Mailer'); $mail->addAddress($receiver_email); $mail->addReplyTo($_GET['contact-email'], $_GET['contact-name']);