Hi All,
I am trying to send a html page as an email.
I have tried sending it as an attachment or as a HTML email.
I have the following code for the latter
$content_type = "text/html";
# read file from the disk
$fd = fopen($filename, "r");
$data = fread($fd, filesize($filename));
fclose($fd);
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// Additional headers
$headers .= 'From: E. Fox Engineers <sales@efox.ie>' . "\r\n";
mail("alan.fox@efox.ie","E. Fox Eng Qte",$data, $headers);
The problem is that it seems to miss the odd bracket so the message comes out a bit mixed up.
Does anyone have any ideas as to why this might be happening?
Thanks,
Alan