I've tried putting this as the last line of my rc.local
mailx -s 'Machine booted'
test@besked.co.uk
but it does not work. Its works ok from the prompt as root. I even tried putting it into .sh script and gave it chmod 777, but it still did not help.
Any ideas?