send log via email

I cant send the log with email. The error is error sending e-mail: error connecting to server.
How can I configure the server SMTP?

Thanks


Hello fren
yes, you can set first your MT divice like this:

/too e-ma set server=xx.xx.xx.xx

xx.xx.xx.xx is ip smtp of your smtp server or visit this link to make update first before sending
i have a little script here: Update SMTP & Backup scripts read at first script.

regards
Hasbullah.com

Thanks, it works.
But how I can send the file with de log (100 lines for ex.). The problem actually is that mikrotik send an e-mail by line.

Thanks again

[normis@demo2.mt.lv] > log print file=logg
[normis@demo2.mt.lv] > file print
 # NAME                   TYPE
 0 autosupout.rif         .rif file
 1 supout.rif             .rif file
 2 logg.txt               .txt file

you can then attach the file to the email as an attachment.
But it would be better to use a Syslog server to collect the logs, like the Dude program - it can also do this.