I want help in script sends ip router dsl via email with commentary
![]()
if you are from egypt i can help you ![]()
this is the script to send wan ip to gmail
/system script
add name=send-wan-ip policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive,api source="/tool fet\
ch url=\"http://mikrotik.vv.si/getip.php\" mode=http dst-path=wan-ip.txt\r\
\nlocal ip [file get wan-ip.txt contents ]\r\
\nput \$ip\r\
\n:delay 10s\r\
\n/tool e-mail send server=173.194.66.108 port=587 tls=yes user=\"Gmail user name\" passwo\
rd=\"Your PassWord\" from=\"Your Email\" to=\"Your Email\" sub\
ject=(\" wan-ip By:Eng / Mostafa Mohamed _ \" . [/system clock get date] . \" - \" . [/system clock get time]) \
file=wan-ip.txt\r\
\n\r\
\n:log info \"wan-ip sent :)\""
/system scheduler
add comment="send wan ip to gmail every 1 h by Mostafa Mohamed" disabled=no interval=1h name=send-wan-ip on-event=send-wan-ip \
policy=ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive,api start-time=startup