Hi people,
i need some help. I want to create script that will send email from mikrotik if some specific pptp connection established. When i sad specific i mean that, when some specific user, example “test”, connect on mt with pptp or l2tp connection, script recognize that and send mail to me. I try to find solution, but until today i dont have lucky with that. Thanks in advance…
try this
test is your name user and SendEmail is your script to send to you an email.
{
local name “test”
foreach i in=[ppp active find ] do={
local name1 [ppp active get value-name=name $i]
if ($name = $name1 ) do={/system script run SendEmail}
} }
That is it. Thanks bro for this, you help me a lot…
if my answer helped you, please give me karma =)