mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-07 13:41:23 +00:00
feat(mail): add CC and BCC fields to email requests and forms (#466)
* feat(mail): add CC and BCC fields to email requests and forms * chore: fmt
This commit is contained in:
committed by
GitHub
parent
796f6f364a
commit
65d1fdd3f0
@@ -144,7 +144,14 @@ class Payment extends Model implements HasMedia
|
||||
{
|
||||
$data = $this->sendPaymentData($data);
|
||||
|
||||
\Mail::to($data['to'])->send(new SendPaymentMail($data));
|
||||
$mail = \Mail::to($data['to']);
|
||||
if (! empty($data['cc'])) {
|
||||
$mail->cc($data['cc']);
|
||||
}
|
||||
if (! empty($data['bcc'])) {
|
||||
$mail->bcc($data['bcc']);
|
||||
}
|
||||
$mail->send(new SendPaymentMail($data));
|
||||
|
||||
return [
|
||||
'success' => true,
|
||||
|
||||
Reference in New Issue
Block a user