changed smtp server
All checks were successful
Build and Deploy Hugo Site / buildAndDeploy (push) Successful in 52s

This commit is contained in:
Andreas Hnida 2024-05-14 20:14:29 +02:00
commit 231d000b43

View file

@ -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