From 72bdab6785a4439ab513d0358ebd668d35909598 Mon Sep 17 00:00:00 2001 From: Andreas Hnida Date: Mon, 13 May 2024 12:38:59 +0200 Subject: [PATCH] added Verua email to order form --- static/php/ajaxmail.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/static/php/ajaxmail.php b/static/php/ajaxmail.php index 62cbefc..7acf297 100644 --- a/static/php/ajaxmail.php +++ b/static/php/ajaxmail.php @@ -27,7 +27,7 @@ try { // 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.'); @@ -44,11 +44,9 @@ try { $mail->Port = 465; // TCP port for the connection // Recipients - $mail->setFrom($email, $name); // Sender address + $mail->setFrom('support@verua.ch', 'Verua Support'); // Sender address $mail->addAddress('ah@mediendesign-hnida.de', 'Andreas Hnida'); // Add recipient - // $mail->addAddress('bettina.rasberger@rabe-web.ch', 'Bettina Rasberger'); // Add another recipient - // $mail->addAddress('norbert.wagner@verua.ch'); // Add another recipient - $mail->addReplyTo($email, $name); // Set reply address + $mail->addAddress('support@verua.ch', 'Verua Support'); // Add another recipient $mail->addBCC('ah@mediendesign-hnida.de'); // Add bounce email address as BCC // Content