added email notification

added note to warehouseorderrequest
This commit is contained in:
Luca Haid
2025-04-10 10:39:18 +02:00
parent 04c7f74a3c
commit 3bae8e0080

View File

@@ -141,7 +141,8 @@ class WarehouseOrderRequestController extends TTCrud {
$html .= '</table>';
// Set the HTML content
$mail->Body = "Neuer Bestellwunsch #" . $orderRequest['id'] . " von " . $this->user->name . ' eingelangt<br><br>' . $html;
$mail->Body = "Neuer Bestellwunsch #" . $orderRequest['id'] . " von " . $this->user->name . ' eingelangt<br><br>' .
'Notiz: ' . htmlspecialchars($orderRequest['note']) . '<br><br>' . $html;
// Send the email
if (!$mail->send()) {