Display Expiration Time for Link in Email Custom Template

Overview

This article provides a method to display a time in the Email to let the user know when the invitation, reset password, or verification link expires.

Applies To

  • Email Custom Templates

Solution

A possible workaround to achieve this solution with Liquid Syntax works as follows for the following Email Templates.

  1.  Attach the code into your Email Custom Template
{% assign current_time = "now" | date: "%s" %}
{% assign future_time = current_time | plus: 600 %}=
Invitation Expires: {{ future_time | date: "%Y-%m-%d %H:%M" }}
  1. Set future_time accordingly with the URL Life-time as in the image below.

    Screenshot 2024-09-26 at 19.56.05.png

    The result should look like the image below after the email is sent.
    Screenshot 2024-09-26 at 19.57.19.png
 

Recommended content

No recommended content found...