Changeset View
Changeset View
Standalone View
Standalone View
src/app/Jobs/TrialEndEmail.php
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | class TrialEndEmail implements ShouldQueue | ||||
/** | /** | ||||
* Execute the job. | * Execute the job. | ||||
* | * | ||||
* @return void | * @return void | ||||
*/ | */ | ||||
public function handle() | public function handle() | ||||
{ | { | ||||
// Skip accounts that aren't ready for mail delivery | |||||
if ($this->account->isLdapReady() && $this->account->isImapReady()) { | |||||
\App\Mail\Helper::sendMail( | \App\Mail\Helper::sendMail( | ||||
new TrialEnd($this->account), | new TrialEnd($this->account), | ||||
$this->account->tenant_id, | $this->account->tenant_id, | ||||
['to' => $this->account->email] | ['to' => $this->account->email] | ||||
); | ); | ||||
} | } | ||||
} | } | ||||
} |