Introduction of tooltips.

This commit is contained in:
2025-01-09 15:28:26 +01:00
parent 6235112f74
commit 82bacb7368
8 changed files with 121 additions and 36 deletions

View File

@@ -3,6 +3,7 @@
namespace App\Http\Controllers\Api;
use App\Http\Controllers\Controller;
use App\Http\Option;
use App\Mail\InvoiceMail;
use App\Models\Invoice;
use App\TenantMail;
@@ -36,6 +37,15 @@ class MailController extends Controller
$invoiceMail->subject($request->Subject);
$invoiceMail->body = $request->Body;
$options = Option::optionsAsObject();
if (property_exists($options, 'bcc_copy')) {
if (is_null($request->Bcc)) {
$request->Bcc = $options->email;
} else {
$request->Bcc .= "," . $options->email;
}
}
try {
$this->mailer->to($request->To)
->cc($request->Cc)