diff --git a/app/Jobs/Import/CSVImport.php b/app/Jobs/Import/CSVImport.php index 3e9df315bf6d..feadeed28e32 100644 --- a/app/Jobs/Import/CSVImport.php +++ b/app/Jobs/Import/CSVImport.php @@ -54,6 +54,7 @@ use Symfony\Component\HttpFoundation\ParameterBag; use Symfony\Component\HttpFoundation\Request; class CSVImport implements ShouldQueue { + use Dispatchable, InteractsWithQueue, Queueable, SerializesModels, CleanLineItems; public $invoice; diff --git a/app/Mail/TemplateEmail.php b/app/Mail/TemplateEmail.php index aec7c51fa3e2..f6382ffafad4 100644 --- a/app/Mail/TemplateEmail.php +++ b/app/Mail/TemplateEmail.php @@ -50,13 +50,11 @@ class TemplateEmail extends Mailable $this->from(config('mail.from.address'), $this->company->present()->name()); - if (strlen($settings->reply_to_email) > 1) { + if (strlen($settings->reply_to_email) > 1) $this->replyTo($settings->reply_to_email, $settings->reply_to_email); - } - if (strlen($settings->bcc_email) > 1) { + if (strlen($settings->bcc_email) > 1) $this->bcc($settings->bcc_email, $settings->bcc_email); - } $this->subject($this->build_email->getSubject()) ->text('email.template.plain', [