Introduction of tooltips.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user