mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-20 08:21:34 +02:00
Centralize where we inject email tags
This commit is contained in:
parent
66c4a1c271
commit
3db1210a12
@ -100,7 +100,7 @@ class NinjaMailerJob implements ShouldQueue
|
||||
$this->nmo->mailable->replyTo($this->company->owner()->email, $this->company->owner()->present()->name());
|
||||
}
|
||||
|
||||
// $this->nmo->mailable->tag($this->company->company_key);
|
||||
$this->nmo->mailable->tag($this->company->company_key);
|
||||
|
||||
//send email
|
||||
try {
|
||||
|
@ -115,12 +115,12 @@ class TemplateEmail extends Mailable
|
||||
'company' => $company,
|
||||
'whitelabel' => $this->client->user->account->isPaid() ? true : false,
|
||||
'logo' => $this->company->present()->logo($settings),
|
||||
])
|
||||
->withSymfonyMessage(function ($message) use ($company) {
|
||||
$message->getHeaders()->addTextHeader('Tag', $company->company_key);
|
||||
$message->invitation = $this->invitation;
|
||||
})
|
||||
->tag($company->company_key);
|
||||
]);
|
||||
// ->withSymfonyMessage(function ($message) use ($company) {
|
||||
// $message->getHeaders()->addTextHeader('Tag', $company->company_key);
|
||||
// $message->invitation = $this->invitation;
|
||||
//});
|
||||
// ->tag($company->company_key);
|
||||
|
||||
/*In the hosted platform we need to slow things down a little for Storage to catch up.*/
|
||||
|
||||
|
@ -109,12 +109,12 @@ class VendorTemplateEmail extends Mailable
|
||||
'company' => $this->company,
|
||||
'whitelabel' => $this->vendor->user->account->isPaid() ? true : false,
|
||||
'logo' => $this->company->present()->logo($settings),
|
||||
])
|
||||
->withSymfonyMessage(function ($message) {
|
||||
$message->getHeaders()->addTextHeader('Tag', $this->company->company_key);
|
||||
$message->invitation = $this->invitation;
|
||||
})
|
||||
->tag($this->company->company_key);
|
||||
]);
|
||||
//->withSymfonyMessage(function ($message) {
|
||||
// $message->getHeaders()->addTextHeader('Tag', $this->company->company_key);
|
||||
// $message->invitation = $this->invitation;
|
||||
//});
|
||||
// ->tag($this->company->company_key);
|
||||
|
||||
if(Ninja::isHosted() && $this->invitation){
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user