Hello!
For some reason the below script will not mail! Can someone tell me why!
Thanks in advance, Tom.
Code:
<?php
function send_mail($fromname,$frommail,$to,$subject,$body,$priority)
{
$fullmail = "\"$fromname\"<$frommail>";
$headers = "From: $fullmail\n";
$headers .= "X-Sender: $fullmail\n";
$headers .= "X-Mailer: PHP\n";
$headers .= "X-Priority: $priority\n";
$headers .= "Return-path: $fullmail\n";
mail($to,$subject,$body,$headers);
}
function send_html_mail($fromname,$frommail,$to,$subject,$body,$priority)
{
$fullmail = "\"$fromname\"<$frommail>";
$headers = 'MIME-Version: 1.0' . "\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\n";
$headers .= "From: $fullmail\n";
$headers .= "X-Sender: $fullmail\n";
$headers .= "X-Mailer: PHP\n";
$headers .= "X-Priority: $priority\n";
$headers .= "Return-path: $fullmail\n";
mail($to,$subject,$body,$headers);
}
?>