Feature availability
Custom email templates are currently available upon request. Contact our support team to have this feature enabled for your account.
Feature availability
Custom email templates are currently available upon request. Contact our support team to have this feature enabled for your account.
Scalekit uses default email templates to send authentication emails to your users. You can customize these templates with your own branding and content to provide a consistent experience for your users.
To customize your email templates:
Once saved, all subsequent emails will use your customized templates.
You can personalize emails using built-in placeholders. These placeholders are automatically replaced with user-specific information when the email is sent:
{{user.name}}
: The user’s name{{user.email}}
: The user’s email address{{auth_request_id}}
: The authentication request ID{{otp}}
: The one-time passcode{{magic_link}}
: The magic link for authenticationFor more advanced personalization, you can use template variables to include custom dynamic content in your emails.
otp
, expiry_time_relative
, link
, expire_time
, expiry_time
Create your email template with variables:
<p>Hello {{ first_name }},</p><p>Welcome to {{ company_name }}.</p><p>Find your onboarding kit: {{ onboarding_resources }}</p>
Include variable values in your authentication request:
const sendResponse = await scalekit.passwordless.sendPasswordlessEmail( "<john.doe@example.com>", { templateVariables: { first_name: "John", company_name: "Acme Corp", onboarding_resources: "https://acme.com/onboarding" } });
The sent email will include the replaced values:
Hello John,Welcome to Acme Corp.Find your onboarding kit: https://acme.com/onboarding