I have not tried myself, but usually there are two problems involved when running thing as service: Access rights and paths. You have checked that it works when you run as nethome from a shell, and then the most likely problem is with paths. Are you specifying all executables and files via full absolute paths? You can for example find the full path to ssmtp by typing
Now I have tried all things I can come up with. It seems that Nethome does execute the command but nothing happens. If I put it in with a syntax fault I will find an error in the log. If the syntax is right (working from putty) nothing can be found in anny log file and no mail is send. I checked the logs from nethome and the mail logs. Nothing...
I tried to run some other shell instructions but onh does not seem to execute the instructions. No errors and no actions... Is anyone else using the exec, ??? function?