diff --git a/pub/api/v1/office/travel-reimburse/send/index.php b/pub/api/v1/office/travel-reimburse/send/index.php index e74ec96..b323b4d 100644 --- a/pub/api/v1/office/travel-reimburse/send/index.php +++ b/pub/api/v1/office/travel-reimburse/send/index.php @@ -201,7 +201,7 @@ if ($API_office_travel_reimburse->request_method === 'POST') { $mail->mailText = 'Your travel reimbursement is attached.'; try { - $mail->addAttachment($pdfFile, 'travel_reimbursement.pdf'); + $mail->addAttachment($pdfFile, 'Travel reimbursement ' . $_SESSION['user']['user_full_name'] . ' - ' . $invoiceNumber . '.pdf'); } catch (\PHPMailer\PHPMailer\Exception $e) { }