echo doesn't work well with sudo, added a command example to send email