mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 00:44:31 -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;
|
||||
|
||||
$plan = $account->plan ?: 'Forever Free';
|
||||
$priority = '';
|
||||
$plan = $account->plan ?: '';
|
||||
|
||||
if(strlen($plan) >1)
|
||||
$priority = '[PRIORITY] ';
|
||||
|
||||
$company = auth()->user()->company();
|
||||
$user = auth()->user();
|
||||
|
||||
if(Ninja::isHosted())
|
||||
$subject = "Hosted {$user->present()->name} - [{$plan} - {$company->db}]";
|
||||
$subject = "{$priority}Hosted-{$company->db} :: Customer Support - [{$plan}]";
|
||||
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())
|
||||
->replyTo($user->email, $user->present()->name())
|
||||
|
Loading…
x
Reference in New Issue
Block a user