invoice and estimate from mail name issue

This commit is contained in:
brijraj_04
2021-02-03 12:21:03 +05:30
parent 70bed01e7b
commit baebfedf37
2 changed files with 3 additions and 2 deletions

View File

@ -40,7 +40,7 @@ class SendEstimateMail extends Mailable
'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'])
->markdown('emails.send.estimate', ['data', $this->data]);

View File

@ -1,6 +1,7 @@
<?php
namespace Crater\Mail;
use Config;
use Crater\Models\EmailLog;
use Crater\Models\Invoice;
use Illuminate\Bus\Queueable;
@ -40,7 +41,7 @@ class SendInvoiceMail extends Mailable
'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'])
->markdown('emails.send.invoice', ['data', $this->data]);
}