script to send email when a hotspot user login

How are you adding the MAC users?

  1. Do you add user to IP Bindings with Type:Bypassed (http://forum.mikrotik.com/t/hotspot-mac-by-radius-auth/22546/1). When I use this method, the client is bypassed, so there is no login. Therefore, script does not run.

  2. Do you add new User with Name as MAC address and blank password (http://forum.mikrotik.com/t/hotspot-mac-by-radius-auth/22546/1). The script works when I use this method.

Or are you using a different method?