Page 1 of 1

Sending a log file with email

Posted: Fri Mar 13, 2015 12:14 pm
by asis27
Hi everyone!

I am creating a script to send a file log via e-mail with Mikrotik .

In "Script" I have the following script:

/tool e-mail send from="xx" to="xx" user="xx" password="xx" port="xx" start-tls=yes server=xx subject="test" body="This is a test log" file=LogBlackList.0.txt
/ file set LogBlackList.0.txt contents=""

What am trying to do is send the email every 24 hours and immediately clear the file's content, but the email that i receive is empty.


Any help would be appreciated.