Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 1742 | Replies: 7
•
•
Join Date: Apr 2007
Posts: 9
Reputation:
Rep Power: 0
Solved Threads: 0
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?
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);
}
?>•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)






Threaded Mode