:global mailip
:set mailip [:resolve smtp.qq.com]
:global mailuser "1036055356@qq.com"    #发送者的邮箱
:global mailpw "aozsemkirqvmbcfc"           #邮箱授权密码，不是QQ密码
:global Tomail "shihongbin620@163.com"  #发送给谁
:global Ccmail "94408222@qq.com"            #抄送给谁
/tool e-mail set from=1036055356@qq.com address=$mailip user=$mailuser password=$mailpw port=25       
/export file=ROS_02bak
/sys backup save name=ROS_02bak

:delay 10
/tool e-mail send file=ROS_02bak.rsc to=$Tomail cc=$Ccmail body=" $[/system clock get date] $[/system clock get time]" subject="配置文本文件rsc—$[/system clock get date] $[/system clock get time] "
/tool e-mail send file=ROS_02bak.backup to=$Tomail cc=$Ccmail body=" $[/system clock get date] $[/system clock get time]" subject="配置文件backup—$[/system clock get date] $[/system clock get time] "
#
:delay 10
#/file rem ROS_02bak.rsc
#/file rem ROS_02bak.backup
 
#:log info (“备份文件已发送 ” . [/sys cl get time] . ” ” . [/sys cl get date])

注解：
前面global全局设定，配置邮件服务器地址、发件人地址、密码（需至邮箱中设置打开SMTP服务）、接收人、抄送、等
在ROS中的邮件服务器中设定设定相应的发件人、邮件服务器地址、账号密码、端口等等
后面ｔｏｏｌ主体设置。