Page 1 of 1

specifying a relay server

Posted: Sun Jan 03, 2010 7:45 am
by wright67uk
I have this php code below, however to be able to use it, godaddy.com, have asked me use their relay server which is;
relay-hosting.secureserver.net. How and where in my code would i type this? also, has anybody else had any good or bad experiences with godaddy? in general i have found them quite good, however i can't really compare them to many other hosting companies. - Thankyou.

<?php
$subject = $_POST["subject"];
$message = $_POST["message"];
$from = $_POST["from"];
$verif_box = $_POST["verif_box"];
$message = stripslashes($message);
$subject = stripslashes($subject);
$from = stripslashes($from);

if(md5($verif_box).'a4xn' == $_COOKIE['tntcon']){
mail("my@email", 'Online Form: '.$subject, $_SERVER['REMOTE_ADDR']."\n\n".$message, "From: $from");
setcookie('tntcon','');
} else if(isset($message) and $message!=""){
header("Location:".$_SERVER['HTTP_REFERER']."?subject=$subject&from=$from&message=$message&wrong_code=true");
exit;
} else {
echo "no variables received, this page cannot be accessed directly";
exit;
}
?>