0) { } else { require_once('class.phpmailer.php'); //***include("../class.smtp.php"); // optional, gets called from within class.phpmailer.php if not already loaded $mto=$recipient; $mfrom=$email; if ($_REQUEST['subject']>'') { $subject=$_REQUEST['subject']; } $mail = new PHPMailer(true); $mail->IsHTML(true); $mail->IsSMTP(); $mail->SMTPAuth = false; // enable SMTP authentication $mail->Host = "mail2.palmsecure.biz"; // sets the SMTP server $mail->Port = 25; // set the SMTP port for the GMAIL server $mail->AddAddress($mto); $mail->WordWrap = 150; $mail->SetFrom($mfrom); if ($subject>'') { $mail->Subject = $subject; } $body = ""; foreach($HTTP_POST_VARS as $key => $value) { if (strtoupper($key)=="EMAIL" || strtoupper($key)=="RECIPIENT" || strtoupper($key)=="RAND" || strtoupper($key)=="SECODE" || strtoupper($key)=="RETPAGE" || strtoupper($key)=="SUBMIT" || strtoupper($key)=="BUTTON" || strtoupper($key)=="IMAGE") { } else { $value=str_replace("\n","
",$value); $body=$body.""; } } $body=$body."
".strtoupper($key)."".ucfirst($value)."
"; $mail->MsgHTML($body) ; //echo $body . "
"; $mail->Send(); header("location:".$retpage); //echo "Mail Sent"; } ?>