Community discussions

 
runbound
newbie
Topic Author
Posts: 30
Joined: Fri Apr 19, 2013 9:28 am

um reminders

Thu Sep 20, 2018 4:37 pm

Hello everyone,
Is there a way to set up some kind of a reminder so that I remind users their account will expire in 3 days, 2 days and finally 1 day?
I use user manager

email me and thier that will tell them: YOUR ACCOUNT WILL EXPIRE IN 3 DAYS. PLEASE RENEW TO STAY CONNECTED.!
can someone update this script because its not working for me
Thanks to all of you experts.


:foreach a in [/ip hotspot active find] do={
:if ([/ip hotspot active get $a %u_actualProfileLeft%]<3d) do={
/tool e-mail send
to="xxx@gmail.com"
subject=("'" . [/ip hotspot active get $a user] . "' logged in") \
body=("User:" . [/ip hotspot active get $a user] . " Date:" . \
[/system clock get time] . " IP address:" . \
/userman email client ""
[/ip hotspot active get $a address] . " MAC address:" . \
[/ip hotspot active get $a mac-address] . " actualProfileEnd:" . \
[/ip hotspot active get $a %u_actualProfileEnd%])
}
}

Who is online

Users browsing this forum: No registered users and 7 guests