From aecc142d6bc6fbf278f7890cc9cbdc5277419605 Mon Sep 17 00:00:00 2001 From: Grzegorz Budny Date: Mon, 6 May 2019 23:09:27 +0200 Subject: [PATCH] Added Send Email Function - general use --- RouterOS_Send_Email.rsc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 RouterOS_Send_Email.rsc diff --git a/RouterOS_Send_Email.rsc b/RouterOS_Send_Email.rsc new file mode 100644 index 0000000..61927a0 --- /dev/null +++ b/RouterOS_Send_Email.rsc @@ -0,0 +1,18 @@ +:global SendEmail do={ + +: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; + +} + +$SendEmail smtpServer=SMTPServer smtpPort=SMTPPort from=From to=To subject=Subject body=Body + +