Email templates define the content and layout used in the authorization emails that OwnID sends automatically to users.

You can edit the templates to customize email content so it reflects your brand and presents text to your customers in the selected language.

How Email is Used

The OwnID platform sends emails automatically when it needs to validate users with either a or a .

For example, OwnID sends an authorization email when a user signs up or logs in for the first time but doesn’t have available biometrics on their device.

Unique Templates for Each App

For each of your OwnID apps, you can create a unique email template to use when the system sends a Magic Link email and another template to use for Authorization(OTP) emails.

Customize your Email Templates

To start customizing your templates:

  1. Log into the Console and select the App that you want to associate with your template. The My App view opens.

  2. Go to Branding > Email templates from the left side navigation panel.

  3. The Email templates page opens. From the Select a template option, you can select the type to edit, Magic link or Verification Email (using code). Main email templates view showing selection of template type and language

Next, customize either or both template types for your App.

Customize the Verification Template

  1. To customize the body of your OTP verification emails, select the Verification option. Preview

  2. Select the language to use in the email text from the Language dropdown.

  3. Enter the desired subject text.

  4. Modify the HTML content directly as desired in the embedded code editor.

All text inside the <body> tags can be customized, and the recipient’s OTP is inserted wherever you place the {code} token.

Example OTP Email
<!DOCTYPE html>
<html>
<head>
    <style>
        .code { font-size: 24px; font-weight: bold; color: #E53238; }
        body { font-family: Arial, sans-serif; }
    </style>
</head>
<body>
    <header>
        <img src="logo_url.jpg" alt="Company Logo" width="150">
    </header>
    <main>
        <p>Hello,</p>
        <p>Here is your one-time login code for <strong>[Brand Name]</strong>:</p>
        <p class="code">{code}</p>
        <p>Please enter this code on the login page. The code expires in 10 minutes.</p>
    </main>
    <footer>
        <p>If you did not request this code, please ignore this email or contact us at support@example.com.</p>
        <p><small>This is an automated message. Please do not reply.</small></p>
    </footer>
</body>
</html>
Embedded code editor for the verification email
  1. Click Preview to check what recipients will see in an authorization email. Preview of rendered template for verification email (Click Reset to start over with the default HTML.)
  2. Click Save
  1. To customize the body of your magic link emails, select Magic Link from the Select a template dropdown. Main email templates view

  2. Select the language to use in the email text from the Language dropdown.

  3. Enter the desired subject text. You can embed your App name in the subject using the {app_name} token.

  4. Modify the HTML content directly as desired in the embedded code editor.

All text inside the <body> and <style> tags can be customized, and the recipient’s magic link is inserted in the DOM wherever you place the {link} token.

Example Magic Link Email
<!DOCTYPE html>
<html>
<head>
    <style>
        .magic-link { 
            font-size: 16px; 
            font-weight: bold; 
            color: #0056b3;
            text-decoration: none;
            padding: 10px 20px;
            background-color: #f2f2f2; 
            border-radius: 5px;
            display: inline-block;
        }
        body { font-family: Arial, sans-serif; }
    </style>
</head>
<body>
    <header>
        <img src="logo_url.jpg" alt="Company Logo" width="150">
    </header>
    <main>
        <p>Hello,</p>
        <p>Click the button below to log in to <strong>[Brand Name]</strong>. The link is only valid for the next 5 minutes and will expire afterward:</p>
        <a href="{link}" class="magic-link">Log in</a>
        <p>If you did not request to log in, please disregard this email or contact us if you believe this is an error.</p>
    </main>
    <footer>
        <p>For support, contact support@example.com</p>
        <p><small>This is an automated message. Please do not reply.</small></p>
    </footer>
</body>
</html>
Embedded code editor for the magic link email
  1. Click Preview to check what recipients will see when they get a magic link email. Preview
  2. Click Save to enable your new template.

Best Practices

Here’s a set of best practices to ensure your email template is both user-friendly and aligns well with your branding and security needs:

  1. Branding and Design Consistency
  • Use Company Logo: Include your company logo at the top of the email to establish trust and brand recognition immediately.
  • Consistent Color Scheme: Utilize colors from your brand palette to reinforce brand identity without overwhelming the content.
  1. Clear and Simple Layout
  • Focus on the Code: The one-time code should be the focal point of the email. Ensure it’s prominently displayed, perhaps even in a separate box to draw attention.
  • Enhanced Visibility: Use a larger font size for the code, make it bold, and consider a contrasting color (that still aligns with your brand) to make it stand out.
  • Minimal Text: Keep other text to a minimum. Just include essential information such as what the code is for and a brief instruction on how to use it.
  1. Concise and Direct Content
  • Clear Instructions: Clearly state the purpose of the email. For example: “Here is your login code for [Brand Name].”
  • Expiration Notice: Mention how long the code will be valid to add urgency and clarify user action needed (e.g., “This code expires in 10 minutes.”).
  • No Links, If Possible: Avoid including links other than necessary ones like a direct login page. This reduces the risk of phishing.
  1. Accessibility
  • Readable Font Style and Size: Use a clear, easily readable typeface. Avoid overly stylized fonts that might be hard to read.
  • Accessible Colors: Ensure that text colors have sufficient contrast with the background for those with visual impairments.

Next Steps

Be sure also to configure your SMTP details to enable sending email. To learn more, see SMTP Setup.