Forum Moderators: coopster
I have a cronjob running on server. On its completion it sends out a HTML email. The same script works fine on other servers, only on this server I get html code instead of formatted html email like below,
-----------------------------------------------
Content-Type: text/html; charset=ISO-8859-1
Return-Path: root@example.com
X-OriginalArrivalTime: 12 Jun 2008 09:52:03.0382 (UTC) FILETIME=[F761ED60:01C8CC71]
Mr <strong>name</strong><br ><br > it is to be notified that <span>some example text here</span> and so on...
--------------------------------
How can I get rid of this so that it sends properly formatted html emails?
thank you
//add From: header
$headers = "From: auto@example.com\r\n";
//specify MIME version 1.0
$headers .= "MIME-Version: 1.0\r\n";
//HTML version of message
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
from CLI, it gives same problem. HTML code is sent instead of html formatted email.