Fixes for edge cases with unsubscribe link
This commit is contained in:
parent
ff33cc5fca
commit
2630f62dfb
1 changed files with 1 additions and 1 deletions
|
|
@ -111,7 +111,7 @@ class TemplateEmail extends Mailable
|
|||
'company' => $company,
|
||||
'whitelabel' => $this->client->user->account->isPaid() ? true : false,
|
||||
'logo' => $this->company->present()->logo($settings),
|
||||
'unsubscribe_link' => $this->invitation->getUnsubscribeLink(),
|
||||
'unsubscribe_link' => $this->invitation ? $this->invitation->getUnsubscribeLink() : '',
|
||||
])
|
||||
->withSwiftMessage(function ($message) use($company){
|
||||
$message->getHeaders()->addTextHeader('Tag', $company->company_key);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue