HI,
I have a script that uses the following code..and it fails beacause of the Mail() disabled command..
I want to try and get it touse phpmailer.class which I have on the directory?
Im not a programmer (i get by scratching around for ages..) can anyone give pointers?
Main.php has this..
function mailme($sendto,$sendername,$from,$subject,$sendmai lbody,$bcc="")
{
global $SERVER_NAME;
$subject = nl2br($subject);
$sendmailbody = nl2br($sendmailbody);
$sendto = $sendto;
if($bcc!="")
{
$headers = "Bcc: ".$bcc."\n";
}
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=utf-8 \n";
$headers .= "X-Priority: 3\n";
$headers .= "X-MSMail-Priority: Normal\n";
$headers .= "X-Mailer: PHP/"."MIME-Version: 1.0\n";
$headers .= "From: " . $from . "\n";
$headers .= "Content-Type: text/html\n";
mail("$sendto","$subject","$sendmailbody","$header s");
}
Regards
RIch


Reply With Quote