Travel reimburse feature added
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user