Frontegg

Frontegg Documentation

Welcome to the Frontegg developer hub. You'll find comprehensive guides and documentation to help you start working with Frontegg as quickly as possible, as well as support if you get stuck. Let's jump right in!

Customize Email Templates

Separate Template for Each Email Type

Frontegg provides a default email template for each type of email message that you send to your customers. You can edit each individual template as desired in order to customize email appearance -- including sender address, subject, redirect URL, message content, message format, logo, etc.

Reset Password

Email template for resetting a password.

Activate User

Email template for activating a new user.

Invite Tenant

Email template for inviting a user to a new tenant.

Template Parameters

For each individual template, you can control the following parameters.

From

Email address to act as the sender.

Subject

Subject of email.

Redirect to

The default redirect URL is:
http://localhost:3000/account/reset-password

Tenant name

Tenant's name can be added by adding {{tenantName}} to the HTML template.

Replace the first part of the default http://localhost:3000/ with the URL of your app. Leave the second part of the default account/reset-password exactly as is.

Message

Click the edit button to open the HTML Editor.

HTML Editor

Use the HTML Editor to make any desired changes to the template. You can swap back and forth freely between the HTML and Preview modes.

You can make any desired changes to an email template. However, there is a requirement that {name} and {RedirectURL} appear within each template.

Dynamic Emails

Below is a list of variables you can inject into your emails.

  • name
  • email
  • phoneNumber
  • profilePictureUrl
  • redirectURL
  • tenantName,
  • metadata (the user metadata)
  • timesPwned (for pwned password)
  • issuerName (the user who triggered the email)
  • issuerEmail
  • issuerMetadata
  • issuerProfilePictureUrl

Updated about a month ago


Customize Email Templates


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.