Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Jul 2007 18:21:16 -0400
From:      Mikhail Teterin <mi+kde@aldan.algebra.com>
To:        Derek Ragona <derek@computinginnovations.com>
Cc:        questions@freebsd.org
Subject:   Re: Can cron e-mail HTML?
Message-ID:  <200707141821.17085@aldan>
In-Reply-To: <6.0.0.22.2.20070714155424.0242a958@mail.computinginnovations.com>
References:  <200707141603.55899@aldan> <6.0.0.22.2.20070714155424.0242a958@mail.computinginnovations.com>

next in thread | previous in thread | raw e-mail | index | archive | help
= To accomplish this I have my cron job run a script like this

Sorry, I missed the most important part. Your script just uses /usr/bin/mail, 
the same way cron does. You are not adding anything, not already present in 
cron -- your script should simply produce output to stdout. Cron will mail 
all that to the address specified in MAILTO=... part of your crontab 
automatically.

AFAIK, to make the e-mail message treated as a MIME one, the "MIME-Version: 
1.0" and "Content-Type: ..." have to be among _headers_.

I'm afraid, it is not possible to directly manipulate the message's headers 
using mail(1), which is why I asked my question in the first place...

	-mi



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707141821.17085>