comply to RFC3834: set header Auto-Submitted: auto-generated for mails; add space in subject #34

Open
maal wants to merge 1 commits from maal/wmdeit_kaform:master into master
1 changed files with 2 additions and 1 deletions
Showing only changes of commit f7efccaffb - Show all commits

View File

@ -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) {