update variables contact.php

This commit is contained in:
Alexandre L 2023-06-12 15:52:30 -04:00
parent 3d759b8b54
commit a0ed72a0e1
2 changed files with 9 additions and 4 deletions

View File

@ -1,5 +1,10 @@
<?php
$smtp_to_email = '';
$smtp_from_email = '';
$smtp_host = '';
$smtp_username = '';
$smtp_password = '';
?>

View File

@ -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']);