Can someone cook me a quick script that does the following:
If
Code: Select all
"/tool e-mail send to=me@me.com body="$strName Logs for $strDate" subject="$strName Logs for $strDate $strTime" file=log"
Code: Select all
/file remove log
log info message="Logs successfully sent via e-mail!"
Code: Select all
log info message="Could not connect to SMTP server!"
Having trouble figuring out how to validate the /tool e-mail send command...
Also a delayed loop will be nice if the email could not be sent, let's say 5 minutes...