From f7efccaffb13e1f29df55d9b57d1d243b5120a11 Mon Sep 17 00:00:00 2001 From: Masin Wiedner Date: Tue, 3 Dec 2024 09:53:11 +0000 Subject: [PATCH] comply to RFC3834: set header Auto-Submitted: auto-generated for mails; add space in subject Signed-off-by: Masin Wiedner --- submit.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/submit.php b/submit.php index 4061e48..2b5fbed 100644 --- a/submit.php +++ b/submit.php @@ -435,7 +435,7 @@ exec ($cmd); $file = "$resultnam.pdf"; if ($_POST['sendmail']=='yes'){ - $subj = "Kostenerstattungsantrag ueber".calcSum()." ".$_POST['currency']; + $subj = "Kostenerstattungsantrag ueber ".calcSum()." ".$_POST['currency']; $mail = new PHPMailer\PHPMailer\PHPMailer(); @@ -450,6 +450,7 @@ if ($_POST['sendmail']=='yes'){ $mail->IsSMTP(); $mail->setFrom($mailFrom); $mail->Subject = $subj; + $mail->addCustomHeader('Auto-Submitted', 'auto-generated'); // comply to RFC 3834 (https://www.iana.org/assignments/auto-submitted-keywords/auto-submitted-keywords.xhtml) $mail->Body = "Kostenerstattungsantrag ..."; $mail->AddAddress($mailDest); if ($mailDestCC) { -- 2.17.1