mirror of
https://github.com/gbudny93/RouterOS_Useful_Scripts.git
synced 2025-06-25 03:08:39 +02:00
Initial Commit. File Created
This commit is contained in:
parent
2d0698a7e0
commit
cada5b5c90
1 changed files with 19 additions and 3 deletions
|
@ -1,5 +1,21 @@
|
||||||
#log print where message~"telnet"
|
:global SendEmail do={
|
||||||
#log print file=
|
|
||||||
|
:local smtpServer #smtp server IP
|
||||||
|
:local smtpPort #smtp port
|
||||||
|
:local from #sender email
|
||||||
|
:local to #recipeints email
|
||||||
|
:local cc #cc email
|
||||||
|
:local subject #email subject
|
||||||
|
:local body #email body
|
||||||
|
|
||||||
|
:log info "..::Sending email notification::..";
|
||||||
|
tool e-mail send server=$smtpServer port=$smtpPort from=$from to=$to cc=$cc subject=$subject body=$body;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#Here script starts
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#filter log and if match send alert via email
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue