Got a strange thing happening and I can't understand why... Using the example in the PHP manual I've created a function to send HTML mail.
Attached in the image is the message I get, the mail send fine but it makes a copy on the server and places this message on the screen.
" /home/dave/dead.letter... Saved message in /home/dave/dead.letter"
Any help appreciated, been playing with it for a while now trying to get it to stop spitting that message out to no avail.
Keiran
<?php
function email($to, $bcc, $subject, $messageGET){
// message
$message = '
<html>
<head>
<title>'.$subject.'</title>
</head>
<body>
'.$messageGET.'
</body>
</html>
';
// 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 .= 'To: $to' . "\r\n";
$headers .= 'From: Aberdeen Excise License Holders Association <[email protected]>' . "\r\n";
if($bcc !== ""){
$headers .= 'Bcc: $bcc' . "\r\n";
}
// Mail it
return(mail($to, $subject, $message, $headers));
?>
" /home/dave/dead.letter... Saved message in /home/dave/dead.letter"
Any help appreciated, been playing with it for a while now trying to get it to stop spitting that message out to no avail.
Keiran