mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 19:51:09 -04:00
invoice and estimate from mail name issue
This commit is contained in:
@ -40,7 +40,7 @@ class SendEstimateMail extends Mailable
|
|||||||
'mailable_id' => $this->data['estimate']['id']
|
'mailable_id' => $this->data['estimate']['id']
|
||||||
]);
|
]);
|
||||||
|
|
||||||
return $this->from($this->data['from'])
|
return $this->from($this->data['from'], config('mail.from.name'))
|
||||||
->subject($this->data['subject'])
|
->subject($this->data['subject'])
|
||||||
->markdown('emails.send.estimate', ['data', $this->data]);
|
->markdown('emails.send.estimate', ['data', $this->data]);
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace Crater\Mail;
|
namespace Crater\Mail;
|
||||||
|
|
||||||
|
use Config;
|
||||||
use Crater\Models\EmailLog;
|
use Crater\Models\EmailLog;
|
||||||
use Crater\Models\Invoice;
|
use Crater\Models\Invoice;
|
||||||
use Illuminate\Bus\Queueable;
|
use Illuminate\Bus\Queueable;
|
||||||
@ -40,7 +41,7 @@ class SendInvoiceMail extends Mailable
|
|||||||
'mailable_id' => $this->data['invoice']['id']
|
'mailable_id' => $this->data['invoice']['id']
|
||||||
]);
|
]);
|
||||||
|
|
||||||
return $this->from($this->data['from'], env('MAIL_FROM_NAME'))
|
return $this->from($this->data['from'], config('mail.from.name'))
|
||||||
->subject($this->data['subject'])
|
->subject($this->data['subject'])
|
||||||
->markdown('emails.send.invoice', ['data', $this->data]);
|
->markdown('emails.send.invoice', ['data', $this->data]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user