diff --git a/src/app/Mail/SignupVerification.php b/src/app/Mail/SignupVerification.php --- a/src/app/Mail/SignupVerification.php +++ b/src/app/Mail/SignupVerification.php @@ -31,8 +31,10 @@ */ public function build() { + $tenantId = \config('app.tenant_id'); $href = Utils::serviceUrl( - sprintf('/signup/%s-%s', $this->code->short_code, $this->code->code) + sprintf('/signup/%s-%s', $this->code->short_code, $this->code->code), + $tenantId ); $username = $this->code->first_name ?? ''; @@ -43,9 +45,9 @@ $this->view('emails.html.signup_verification') ->text('emails.plain.signup_verification') - ->subject(\trans('mail.signupverification-subject', ['site' => \config('app.name')])) + ->subject(\trans('mail.signupverification-subject', ['site' => \App\Tenant::getConfig($tenantId, 'app.name')])) ->with([ - 'site' => \config('app.name'), + 'site' => \App\Tenant::getConfig($tenantId, 'app.name'), 'username' => $username ?: 'User', 'code' => $this->code->code, 'short_code' => $this->code->short_code,