From 231d000b43912ab59d86a19419dfbe2eb5603830 Mon Sep 17 00:00:00 2001 From: Andreas Hnida Date: Tue, 14 May 2024 20:14:29 +0200 Subject: [PATCH] changed smtp server --- static/php/ajaxmail.php | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/static/php/ajaxmail.php b/static/php/ajaxmail.php index 7acf297..14407b7 100644 --- a/static/php/ajaxmail.php +++ b/static/php/ajaxmail.php @@ -20,14 +20,6 @@ try { $subject = strip_tags(trim(filter_input(INPUT_POST, 'formularart'))); // Construct the message using the function from message.php $message = constructMessage(); - - $bot = $_POST['tra'] ; - - if ($bot == 'true') { - // Es handelt sich wahrscheinlich um einen Bot - $subject = 'Botverdacht - ' . $subject; - } - if (empty($name) || !filter_var($email, FILTER_VALIDATE_EMAIL) || empty($message)) { // Invalid input throw new Exception('Ungültige Eingabedaten.'); @@ -36,10 +28,10 @@ try { // Server settings //$mail->SMTPDebug = SMTP::DEBUG_SERVER; // Enable this for detailed debugging $mail->isSMTP(); // Use SMTP - $mail->Host = 'sslout.de'; // Set SMTP server + $mail->Host = 'ophelia.kreativmedia.ch'; // Set SMTP server $mail->SMTPAuth = true; // Enable SMTP authentication - $mail->Username = 'ah@mediendesign-hnida.de'; // SMTP username - $mail->Password = 'jrd9h7RnVjf/'; // SMTP password + $mail->Username = 'email'; // SMTP username + $mail->Password = 'zki@U/*{A]}3#kS/Lg|)l]t:,XHuV=8l_'; // SMTP password $mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS; // Enable encryption $mail->Port = 465; // TCP port for the connection