2 hours ago
You should add a delay to the init script. If you have a power outage LM can start faster than your router so sending an email can fail.
Code:
os.sleep(60)
to = 'mymail@gmail.com'
subject = 'Alert'
message = 'LM started'
res, err = mail(to, subject, message)
if not res then
log(err)
end