Hello,
I would like the RB951G-2HnD to generate a daily log report and then send to a email address. Does it possible to do that?
Thank you,
Hello,
I would like the RB951G-2HnD to generate a daily log report and then send to a email address. Does it possible to do that?
Thank you,
Go to scheduler and paste that script in the window
http://www.wirelessinfo.be/index.php/mikrotik/pages/log-script
Look on my website in dutch but follow the printscreens a made
Hi,
I have tried to follow the steps of the website that you provided, but, it cannot receive any mail about the log.
And the smtp is already setup in the MiktoTik router (\Tools Email), and received the testing mail.
What kind of parameter that I setting wrong?

My example is for a pop smtp-server with port 25
Not for Gmail-i search for the working solution with Gmail setup
I would like to use the MitroTik to send its daily log via a smtp server to hotmail. For my understanding, it can be used the smtp to send out the mail to hotmail/gmail/yahoo.
If my concept is not correct, please feel free to correct me.
Thank you
Look to this http://www.wirelessinfo.be/index.php/mikrotik/pages/emaile
But the topic gmail setup in the middle of the page
This must you implement in your script
I am using a simple smtp to send out the email log as the screen capture. I think this is not a google case.
And, I have tried to send a test mail from MitroTik, it work and received.
But, I don’t know why the following script cannot be execute (I cannot see any log for execute this script). Of course, there’s no log report email send out.
:local logcontent :foreach int in=[/log find ] do={ :set logcontent (“$logcontent\r\n” .[/log get $int time]. " - " .[/log get $int message]) } #send email /tool e-mail send to=“uw-email@mail.be” subject=([/system identity get name] . " Log " . [/system clock get date]) body=$logcontent #delete old log /system logging action set memory memory-lines=1 /system logging action set memory memory-lines=65000

Change from… to test@mikrotik.com
Look than of it works
In the first picture stood email adres @Gmail.com this is not a smtp-server but webmail
Does that is the “Send to” email address? This is no relationship about the IMAP or SMTP. That’s the email address of the recipient only.
Try to change that please in a smtp server email with port 25 not imap or webmail
As you see the screen captured below, the smtp port is already port 25. And, I have tried to send a test mail, it worked. But, the daily report does not work.
How come?
When I set the scheduler for the time to run the task, it does not appear in the log after the time. But the Run Count is changed to
“1”

This email settings likes good to me but now must you settings the email in the script.
The script used the email configuration in this window.
Don’t use there a gmail email.
If you want give me an existing email from you and i change the script for you

Change this email to your existing email (that you sended as test)
What you configurerd is a gmail address and this use not port 25

Hello,
I have sent my email address by the contact of your web site. Please have a check.
Thank you very much
I send you email