Travel reimburse feature added

This commit is contained in:
2026-07-07 22:48:57 +02:00
parent e1ef2456ea
commit 30269316b2
29 changed files with 21392 additions and 26 deletions

View File

@@ -10,6 +10,7 @@ require_once "{$_SERVER['DOCUMENT_ROOT']}/../vendor/autoload.php";
class mailBuilder
{
public PHPMailer $mail;
public string $subject;
public string $mailText;
@@ -60,6 +61,14 @@ class mailBuilder
}
}
/**
* @throws Exception
*/
function addAttachment($path, $name): void
{
$this->mail->addAttachment($path, $name);
}
function sendMail(): bool
{
try {