How can i make this script work?
It is meant to send an email to a person with a confirmation code, but it is not working. whats wrong with it?
<?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);
}
?>