changed smtp server
All checks were successful
Build and Deploy Hugo Site / buildAndDeploy (push) Successful in 52s
All checks were successful
Build and Deploy Hugo Site / buildAndDeploy (push) Successful in 52s
This commit is contained in:
parent
67a64b1bf8
commit
231d000b43
1 changed files with 3 additions and 11 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue