isSMTP(); $mail->Host = 'qube.teleqom.org'; $mail->SMTPAuth = true; $mail->Username = 'info@teleqom.org'; $mail->Password = $smtp_password; $mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS; $mail->Port = 587; $mail->setFrom('info@teleqom.org', '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(); } ?>