Display Expiration Time for Link in Email Custom Template

Overview

This article provides a method for displaying a time in an 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.

    The result should look like the image below after the email is sent.