Fixed filename extension in Invoice Email

This commit is contained in:
Frank Schubert
2024-07-10 15:22:39 +02:00
parent f683803913
commit b1358f6f2c
2 changed files with 61 additions and 2 deletions

View File

@@ -152,7 +152,7 @@ XINON GmbH";
$email->setFrom($from, $from_name);
$email->setTo($to);
$email->setHeader("X-".MFAPPNAME."-Iid", $this->id);
$email->addAttachment($pdf_filename, null, $pdf->name, "application/pdf");
$email->addAttachment($pdf_filename, null, $pdf->filename, "application/pdf");
$email->send();
$this->log->info(__METHOD__.": Sending Invoice ".$this->invoice_number." to $to");
}