Fixes for support messages
This commit is contained in:
parent
f07980f27c
commit
293a187618
1 changed files with 7 additions and 3 deletions
|
|
@ -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…
Add table
Reference in a new issue