update variables contact.php
This commit is contained in:
parent
3d759b8b54
commit
a0ed72a0e1
@ -1,5 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
$smtp_to_email = '';
|
||||||
|
$smtp_from_email = '';
|
||||||
|
|
||||||
|
$smtp_host = '';
|
||||||
|
$smtp_username = '';
|
||||||
$smtp_password = '';
|
$smtp_password = '';
|
||||||
|
|
||||||
?>
|
?>
|
@ -14,7 +14,7 @@
|
|||||||
die();
|
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'];
|
$message = "Contact: ".$_GET['contact-name']."\nEmail: ".$_GET['contact-email']."\nMessage:\n".$_GET['contact-message'];
|
||||||
|
|
||||||
@ -22,14 +22,14 @@
|
|||||||
|
|
||||||
try{
|
try{
|
||||||
$mail->isSMTP();
|
$mail->isSMTP();
|
||||||
$mail->Host = 'qube.teleqom.org';
|
$mail->Host = $smtp_host;
|
||||||
$mail->SMTPAuth = true;
|
$mail->SMTPAuth = true;
|
||||||
$mail->Username = 'info@teleqom.org';
|
$mail->Username = $smtp_username;
|
||||||
$mail->Password = $smtp_password;
|
$mail->Password = $smtp_password;
|
||||||
$mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS;
|
$mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS;
|
||||||
$mail->Port = 587;
|
$mail->Port = 587;
|
||||||
|
|
||||||
$mail->setFrom('info@teleqom.org', 'Mailer');
|
$mail->setFrom($smtp_from_email, 'Mailer');
|
||||||
$mail->addAddress($receiver_email);
|
$mail->addAddress($receiver_email);
|
||||||
$mail->addReplyTo($_GET['contact-email'], $_GET['contact-name']);
|
$mail->addReplyTo($_GET['contact-email'], $_GET['contact-name']);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user