Community discussions

MikroTik App
 
User avatar
leostereo
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 92
Joined: Thu Oct 18, 2012 11:36 pm
Location: mendoza , argentina
Contact:

Handle multiple lines output to send by email

Fri Jan 03, 2020 8:42 pm

Hi , guys , im sending emails from my mkt device with:
/tool e-mail send file=backup  to="leandro@pepe.com.ar" body=$body  subject="system_backup_$[/system identity get name]"
I would like to set the $body variable to send the output of:
/system resource print
How can I do it ?
So far , I can grab one line by one doing:
[:tostr [/system resource get value-name=board-name]]
But ... I think there should be a better and faster way.
Any idea, would be pretiated.
Regards.
Leandro

Who is online

Users browsing this forum: No registered users and 29 guests