We have a requirement of sending password expiration emails from ISC to users only on 14, 7, 3,1 days before expiration and on the expired day and no emails on other days.
How can this be achieved?
We have a requirement of sending password expiration emails from ISC to users only on 14, 7, 3,1 days before expiration and on the expired day and no emails on other days.
How can this be achieved?
Hi piyush please try these velocity template in email notification
#if($dayToExpire != 14 && $dayToExpire != 7 && $dayToExpire != 3)#stop#end
REMINDER: Your $acctName password expires in $dayToExpire days
This does not save, it may have errors
Hello @pdiwani-amgen
#if($dayToExpire != 14 && $dayToExpire != 7 && $dayToExpire != 3 && $dayToExpire != 1 && $dayToExpire != 0)#stop#end
#if($dayToExpire == 0)
Your $acctName password expires today. Please change your password as soon as possible.
#elseif($dayToExpire == 1)
Your $acctName password expires tomorrow. Please change your password before it expires.
#else
Your $acctName password expires in $dayToExpire days. Please change your password before it expires.
#end
You can try this
I also need a notification if it has expired
#if($dayToExpire != 14 && $dayToExpire != 7 && $dayToExpire != 3 && $dayToExpire != 1 && $dayToExpire != 0 && $dayToExpire != -1)#stop#end
#if($dayToExpire < 0)
Your $acctName password has expired. Please change your password immediately.
#elseif($dayToExpire == 0)
Your $acctName password expires today. Please change your password as soon as possible.
#elseif($dayToExpire == 1)
Your $acctName password expires tomorrow. Please change your password before it expires.
#else
Your $acctName password expires in $dayToExpire days. Please change your password before it expires.
#end
You can try this then