update variables contact.php

production
Alexandre L 11 months ago
parent 3d759b8b54
commit a0ed72a0e1
  1. 5
      config/PRIVATE/contact.php.example
  2. 8
      php/contact.php

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

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

Loading…
Cancel
Save