mirror of
https://github.com/gbudny93/RouterOS_Useful_Scripts.git
synced 2025-06-26 19:58:41 +02:00
Added Send Email Function - general use
This commit is contained in:
parent
383eada1a9
commit
aecc142d6b
1 changed files with 18 additions and 0 deletions
18
RouterOS_Send_Email.rsc
Normal file
18
RouterOS_Send_Email.rsc
Normal file
|
@ -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
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue