> On Fri, 2009-10-02 at 20:45 +0300, Jari Fredriksson wrote: > >> Sendmail command is available with sendmail and postfix >> emailers, dunno about others. >> > You don't need to use sendmail: if the cron job writes > anything to stdout (or stderr) this is automatically > mailed to root. > > If you'd rather that mail sent to root comes to you > instead, just add a redirection line to /etc/aliases. > Don't forget to regenerate the aliases database by > running 'aliases' or your redirection won't take effect. > >
That HTML version needs to add a header for Content-Type. That is not possible by just echoing somehing, as those go automatically to the body. The non-html version uses cron's default behaviour, but the html version must use sendmail.