1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Allow different mail from / mail name for multi company mailers

This commit is contained in:
David Bomba 2022-11-14 15:01:55 +11:00
parent ccac01bacd
commit 5b5213de93

View File

@ -251,6 +251,13 @@ class NinjaMailerJob implements ShouldQueue
],
]);
if(env($this->company->id . '_MAIL_FROM_ADDRESS'))
{
$this->nmo
->mailable
->from(env($this->company->id . '_MAIL_FROM_ADDRESS', env('MAIL_FROM_ADDRESS')), env($this->company->id . '_MAIL_FROM_NAME', env('MAIL_FROM_NAME')));
}
}
}