isSMTP(); $mail->Host = 'mail.mymagenta.at'; $mail->SMTPAuth = true; $mail->Username = 'adi.global@chello.at'; $mail->Password = 'Das_2525Globe'; $mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS; $mail->Port = 465; $mail->setFrom('adi.global@chello.at', 'Adi Global'); $mail->addAddress('bilashi.global@chello.at', 'Bilashi Global'); $userEmail = $_POST['email']; $userMessage = htmlspecialchars($_POST['message']); $mail->isHTML(false); $mail->Subject = 'New Message from Adi Global Website'; $mail->Body = "From: $userEmail\n\nMessage:\n$userMessage"; $mail->send(); echo "✅ Message sent successfully!"; } catch (Exception $e) { echo "❌ Message could not be sent. Error: {$mail->ErrorInfo}"; } } ?>