I am with problem in the email sending what it can be, can be in mikrotik has as to recommence the service that sends email if it has which would be and as to make. I find that the problem would not be in script because it was functioning. Script used:
add name=“backup_mail” source=“system backup save name=email\n\n/tool e-mail send
to="userbkp@bol.com.br" from="userbkp@bol.com.br" server="smtp.bol.com.br"
subject=([/system identity get name] . " " . [/system clock get time] . " " . [/system
clock get date] . " Backup") file=email.backup” policy=ftp,reboot,read,write,policy,test
I created the following script:
/system backup save name=email
/tool e-mail send to="support@mydomain.com" subject=([/system identity get name] . " Backup") file=email.backup
But it wouldn’t work till I setup the email through the terminal ie:
/tool e-mail print
server: 192.168.0.12
from: support@mydomain.com
the server is the ip of my smtp.
So if your problem is sending email makes sure to check that. ![]()