isSMTP(); $mail->Host = $smtp_host; $mail->SMTPAuth = true; $mail->Username = $smtp_username; $mail->Password = $smtp_password; $mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS; $mail->Port = 587; $mail->setFrom($smtp_from_email, 'Mailer'); $mail->addAddress($receiver_email); $mail->addReplyTo($_GET['contact-email'], $_GET['contact-name']); $mail->isHTML(false); $mail->Subject = 'Contact TeleQom.org'; $mail->Body = $message; $mail->AltBody = $message; $mail->send(); header("Location: ".$lang_folder."confirmation.html"); }catch (Exception $e) { header("Location: ".$lang_folder."err/contact.html"); die(); } ?>