54. Mikrotik Email Alert when new user connect to your Hotspot

Here is a Script:

/system script add name="new_user" source={
  :foreach a in [/ip hotspot active find] do={
    :if ([/ip hotspot active get $a uptime]<1m) do={
      /tool e-mail send \
        to=phalla.ccmt@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:" . \
          [/ip hotspot active get $a address] . "  MAC address:" . \
          [/ip hotspot active get $a mac-address] . "  Session timeout:" . \
          [/ip hotspot active get $a session-timeout])
      }
    }
  }

You can contact me: plus.google.com/+PhallaCCMT; youtube.com/phallaccmt; facebook.com/Phalla.CCMT; twitter.com/PhallaCCMT and Phalla.CCMT@gmail.com
Previous
Next Post »

11 comments

Write comments
hasnetakiwa
AUTHOR
June 3, 2017 at 2:20 PM delete

thanks Phalla, i'm try but not working. you can show the youtube video tutorial?

Reply
avatar
hasnetakiwa
AUTHOR
June 3, 2017 at 2:20 PM delete

thanks Phalla, i'm try but not working. you can show the youtube video tutorial?

Reply
avatar
charlos john
AUTHOR
February 23, 2019 at 5:51 PM delete

Took me time to read all the comments, but I really enjoyed the article. It proved to be Very helpful to me and I am sure to all the commenters here! It’s always nice when you can not only be informed, but also entertained! hotmail.com

Reply
avatar
April 19, 2019 at 10:01 PM delete

Thanks for this article very helpful. thanks. Email Database

Reply
avatar
Unknown
AUTHOR
June 4, 2019 at 1:40 PM delete

I just finised reading all the comments, but seriously i have to say great article, Thanks for sharing these kind of content with us .
hotmail.com

Reply
avatar
June 12, 2019 at 12:00 PM delete

The thought sounds exciting and adventurous until you discover that you can lose those hard earned contacts and worse, you could be criminally charged for spamming or sending unsolicited emails on the internet. Email List for Marketing

Reply
avatar
June 22, 2019 at 11:54 AM delete

I am thankful to you for sharing this plethora of useful information. I found this resource utmost beneficial for me. Thanks a lot for hard work. learn more about Hotmail

Reply
avatar
July 4, 2019 at 1:35 AM delete

Great survey, I'm sure you're getting a great response. email list

Reply
avatar
mark johnson
AUTHOR
July 14, 2019 at 11:10 AM delete

Thank you for taking the time to publish this information very useful! ActiveCampaign Plus plan

Reply
avatar
Unknown
AUTHOR
July 20, 2019 at 10:32 PM delete

Thankyou for this wondrous post, I am glad I observed this website on yahoo. email hunter

Reply
avatar
appu
AUTHOR
August 18, 2019 at 12:09 PM delete

thank you for this such a good information about hotmail email login on www.hotmail.com

Reply
avatar