在System->Scheduler里,添加一个Scheduler:
:global mailip
:set mailip [:resolve smtp.163.com]
:global mailuser “XXX”
:global mailpw “XXX”
:global Tomail “XXX8@163.com”
/tool e-mail set from=XXX@163.com address=$mailip user=$mailuser password=$mailpw port=25
/export file=jq
/sys backup save name=jq
:delay 10
/tool e-mail send file=jq.rsc to=$Tomail body=” $[/system clock get date] $[/system clock get time]” subject=”配置文本文件rsc—$[/system clock get date] $[/system clock get time] “
/tool e-mail send file=jq.backup to=$Tomail body=” $[/system clock get date] $[/system clock get time]” subject=”配置文件backup—$[/system clock get date] $[/system clock get time] “
:delay 10
/file rem jq.rsc
/file rem jq.backup
:log info (“备份文件已发送 ” . [/sys cl get time] . ” ” . [/sys cl get date])