routeros - email

最後更新: 2019-10-23

 


設定

 

設定一共分為 part, 分別是

  1. /tool e-mail
  2. /tool e-mail send

 


/tool e-mail

 

設定 SMTP Server 及 "From:"

  • from
  • address                     # SMTP server's IP address.
  • port
  • username                  # plain authentication and tls encryption
  • password

i.e.

/tool e-mail
set from="" address="x.x.x.x" port="2025"

 


/tool e-mail send

 

發信

  • to (string; Default: )
  • subject (string; Default: )
  • body (string; Default: )
  • file (string; Default: )
  • start-tls=no (yes|no|tls-only; Default: yes) <- 必須最尾

i.e.

/tool e-mail send to=tim@mydomain subject="test msg" body="$[/system clock get time]" start-tls=no

 


 

 

Creative Commons license icon Creative Commons license icon