Community discussions

MikroTik App
 
masterpianist
just joined
Topic Author
Posts: 16
Joined: Wed Sep 12, 2018 10:19 am

[Help] Save script output to variable and then send to email

Fri Oct 25, 2019 12:58 pm

Hi guys, I'm having difficulties with saving script output to a variable and then send it to mail

Any help would be appriciated. Thanks
:local mail 
:foreach i in=[/ppp secret find where disabled=yes] do={ :set mail $i [:put  [/ppp secret get $i comment]]}
/tool e-mail send to=xxx@gmail.com subject=("xxx") body=("\n\n" . $mail);
 
User avatar
jousedelano
just joined
Posts: 12
Joined: Wed Aug 11, 2021 6:50 am

Re: [Help] Save script output to variable and then send to email

Thu Apr 07, 2022 4:00 am

It's not possible, in 2022 it's still not possible. Thanks Mikrotik.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: [Help] Save script output to variable and then send to email

Thu Apr 07, 2022 2:44 pm

@jousedelano doesn't start pissing off by resurrecting old nonsense arguments.

Is clear than the OP is a dummy programmer for the presence of this:
:set mail $i [:put [/ppp secret get $i comment]]

and you are probably worse off, dear "Business Owner"

Thank you.

Who is online

Users browsing this forum: CJWW and 26 guests