Community discussions

MUM Europe 2020
just joined
Topic Author
Posts: 4
Joined: Wed Mar 11, 2015 11:22 am

Sending a log file with email

Fri Mar 13, 2015 12:14 pm

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.

Who is online

Users browsing this forum: No registered users and 24 guests