mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 08:14:44 -04:00
Fixes for support messages
This commit is contained in:
parent
f07980f27c
commit
293a187618
@ -52,15 +52,19 @@ class SupportMessageSent extends Mailable
|
|||||||
|
|
||||||
$account = auth()->user()->account;
|
$account = auth()->user()->account;
|
||||||
|
|
||||||
$plan = $account->plan ?: 'Forever Free';
|
$priority = '';
|
||||||
|
$plan = $account->plan ?: '';
|
||||||
|
|
||||||
|
if(strlen($plan) >1)
|
||||||
|
$priority = '[PRIORITY] ';
|
||||||
|
|
||||||
$company = auth()->user()->company();
|
$company = auth()->user()->company();
|
||||||
$user = auth()->user();
|
$user = auth()->user();
|
||||||
|
|
||||||
if(Ninja::isHosted())
|
if(Ninja::isHosted())
|
||||||
$subject = "Hosted {$user->present()->name} - [{$plan} - {$company->db}]";
|
$subject = "{$priority}Hosted-{$company->db} :: Customer Support - [{$plan}]";
|
||||||
else
|
else
|
||||||
$subject = "Self Host {$user->present()->name} - [{$plan} - {$company->db}]";
|
$subject = "{$priority}Self Hosted :: Customer Support - [{$plan}]";
|
||||||
|
|
||||||
return $this->from(config('mail.from.address'), $user->present()->name())
|
return $this->from(config('mail.from.address'), $user->present()->name())
|
||||||
->replyTo($user->email, $user->present()->name())
|
->replyTo($user->email, $user->present()->name())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user