mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-10 05:04:47 +02:00
global-functions: $SendEMail: prepare to add link
For e-mail just in plain text...
This commit is contained in:
parent
46866e2ff2
commit
d09baddac3
1 changed files with 2 additions and 0 deletions
|
@ -712,6 +712,7 @@
|
||||||
:set SendEMail do={
|
:set SendEMail do={
|
||||||
:local Subject [ :tostr $1 ];
|
:local Subject [ :tostr $1 ];
|
||||||
:local Message [ :tostr $2 ];
|
:local Message [ :tostr $2 ];
|
||||||
|
:local Link;
|
||||||
:local Attach [ :tostr $3 ];
|
:local Attach [ :tostr $3 ];
|
||||||
|
|
||||||
:global Identity;
|
:global Identity;
|
||||||
|
@ -730,6 +731,7 @@
|
||||||
/ tool e-mail send to=$EmailGeneralTo cc=$EmailGeneralCc \
|
/ tool e-mail send to=$EmailGeneralTo cc=$EmailGeneralCc \
|
||||||
subject=("[" . $Identity . "] " . $Subject) \
|
subject=("[" . $Identity . "] " . $Subject) \
|
||||||
body=($Message . \
|
body=($Message . \
|
||||||
|
[ $IfThenElse ([ :len $Link ] > 0) ("\n\n" . $Link) "" ] . \
|
||||||
[ $IfThenElse ([ :len $Signature ] > 0) ("\n-- \n" . $Signature) "" ]) \
|
[ $IfThenElse ([ :len $Signature ] > 0) ("\n-- \n" . $Signature) "" ]) \
|
||||||
file=$Attach;
|
file=$Attach;
|
||||||
} on-error={
|
} on-error={
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue