Changeset View
Changeset View
Standalone View
Standalone View
src/app/Mail/PasswordExpirationReminder.php
Show All 38 Lines | class PasswordExpirationReminder extends Mailable | ||||
/** | /** | ||||
* Build the message. | * Build the message. | ||||
* | * | ||||
* @return $this | * @return $this | ||||
*/ | */ | ||||
public function build() | public function build() | ||||
{ | { | ||||
$appName = Tenant::getConfig($this->user->tenant_id, 'app.name'); | $appName = Tenant::getConfig($this->user->tenant_id, 'app.name'); | ||||
$supportUrl = Tenant::getConfig($this->user->tenant_id, 'app.support_url'); | |||||
$href = Utils::serviceUrl('profile', $this->user->tenant_id); | $href = Utils::serviceUrl('profile', $this->user->tenant_id); | ||||
$params = [ | $params = [ | ||||
'site' => $appName, | 'site' => $appName, | ||||
'date' => $this->expiresOn, | 'date' => $this->expiresOn, | ||||
'link' => sprintf('<a href="%s">%s</a>', $href, $href), | 'link' => sprintf('<a href="%s">%s</a>', $href, $href), | ||||
'username' => $this->user->name(true), | 'username' => $this->user->name(true), | ||||
]; | ]; | ||||
Show All 27 Lines |