I have a cron to execute php files and then mails me the output. This works fine. My question is I want cron to email me the output in HTML. Currently it is just plain text.
I know when I use mail to use the code below and the email is formatted correctly.
$headers = “From: $from\r\n”;
$headers .= “Reply-To: $email \r\n”;
$headers .= ‘MIME-Version: 1.0’ . “\r\n”;
$headers .= “Content-Type: text/html; charset=‘iso-8859-1’\n”;
$headers .= “X-Mailer: PHP/”.phpversion();
So, the question is, how can I get cron to do that? Or put that information in the cron headers?
Thanks