On Fri, 2009-10-02 at 21:33 +0300, Jari Fredriksson wrote:
> > 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.
> 
As crond must also use sendmail to ship any text that is left for it to
deal with and you've already inserted the MIME header, it seems to me
that the HTML processing would happen anyway, regardless of whether the
call to sendmail was implicit or explicit. Hence I assumed that you'd
just sendmail to avoid using the aliases system. What did I miss?


Martin


Reply via email to