Page 1 of 1
Multiple Files in one e-mail.
Posted: Tue Apr 06, 2010 12:04 am
by Sunsetcomputers
I have been searching the forums on a way to send multiple files in one e-mail script. to be more specific I want to send the Log.txt, a userman backup and full config backup. just not sure what the script is to add more then one file into a single e-mail... thanks for any help.
Re: Multiple Files in one e-mail.
Posted: Tue Apr 06, 2010 2:25 pm
by janisk
it is only possible to attach one file to e-mail message in routeros.
Re: Multiple Files in one e-mail.
Posted: Wed Nov 26, 2014 3:21 pm
by tafisa
That was on 2010, but now?
Thanks
Re: Multiple Files in one e-mail.
Posted: Wed May 06, 2015 12:23 pm
by 23q
?????2015
Posted: Thu May 07, 2015 7:21 am
by jarda
Now it is still the same. I would like to have the possibility to attach more files too.
Re: Multiple Files in one e-mail.
Posted: Fri Mar 11, 2016 7:04 am
by korniza
any news for multiple files attachment??!?!? Really guys, it is not rocket sciense!
Posted: Fri Mar 11, 2016 7:35 am
by jarda
... And so the time goes year by year ...
Re: Multiple Files in one e-mail.
Posted: Fri Mar 03, 2017 5:00 pm
by ploquets
nothing ? +1 for multiple files in email
Re: Multiple Files in one e-mail.
Posted: Wed Dec 06, 2017 2:25 pm
by BlackVS
:local files {$backupconf;$backuplog}
/tool e-mail send to="vvs@somewhere.com" subject="$[/system identity get name]-$[/system clock get time] Backup Configuration & Log - SBB-Optic" file=$files
sends two files!!!
Why - I don't know.
Because wiki clearly says (
https://wiki.mikrotik.com/wiki/Manual:Tools/email):
file (File[,File]; Default: ) - List of the file names that will be attached to the mail separated by comma."
I just put myself on place of developer and imagine how I would passed few files...
Re: Multiple Files in one e-mail.
Posted: Fri Dec 07, 2018 11:54 am
by pin
:local files {$backupconf;$backuplog}
/tool e-mail send to="vvs@somewhere.com" subject="$[/system identity get name]-$[/system clock get time] Backup Configuration & Log - SBB-Optic" file=$files
sends two files!!!
Why - I don't know.
Because wiki clearly says (
https://wiki.mikrotik.com/wiki/Manual:Tools/email):
file (File[,File]; Default: ) - List of the file names that will be attached to the mail separated by comma."
I just put myself on place of developer and imagine how I would passed few files...
Great idea. Still works.
Re: Multiple Files in one e-mail.
Posted: Fri Oct 18, 2019 1:28 pm
by floaty
... or just send all files in a specific folder (disk2/sw/*) ...
.
/tool e-mail send to="rcvr@rcvr.net" from="$sysName@sndr.net" body="disk2/sw-content" subject="disk2/sw-content" file=[:file find where name~"disk2/sw/"]