Merge branch 'latest' of forge.dmz.skyfritt.net:stopplidelsen/innhold into latest

This commit is contained in:
Ruben Solvang 2026-08-25 16:34:58 +02:00
commit c7ec163a36

View file

@ -143,7 +143,10 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['contact_form_submit']
$mail->SetSender([$smtpConfig['from_email'] => $smtpConfig['from_name']]); $mail->SetSender([$smtpConfig['from_email'] => $smtpConfig['from_name']]);
$mail->AddRecipient([$smtpConfig['to_email'] => $smtpConfig['to_name']]); $mail->AddRecipient([$smtpConfig['to_email'] => $smtpConfig['to_name']]);
$mail->AddReplyTo([$formData['email'] => $formData['name']]); // Bare email address only: PHPMailer.Lite doesn't RFC 2047-encode the display
// name, so a name with non-ASCII characters (æ/ø/å) or a comma produces an
// invalid Reply-To header that some mail servers reject outright.
$mail->AddReplyTo($formData['email']);
$mail->SetSubject('Ny henvendelse fra kontaktskjema'); $mail->SetSubject('Ny henvendelse fra kontaktskjema');
$mail->SetBodyText($emailBody); $mail->SetBodyText($emailBody);