Hello,
I would ask your help to adapt our e-mail form to my website.
Everything was working perfectly until last Sunday.
But I think that some changes was done on the server, and from yesterday, all the e-mails forms from my sites don't work anymore.
I am sending below the PHP code of the form that I created and was using here:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<?
//inicia o php
$name = $_POST["name"];
$email = $_POST["email"];
$country = $_POST["country"];
$affilliation = $_POST["affilliation"];
$track = $_POST["track"];
$note = $_POST["note"];
$comments = $_POST["comments"];
$ip = $_SERVER['REMOTE_ADDR']; //pega o ip de quem enviou
$data = date("d/m/y"); //pega a data
$hora = date("H:i"); //pega a hora
//Campos Obrigatorios
$name = $_REQUEST['name'];
$email = $_REQUEST['email'];
$country = $_REQUEST['country'];
$affilliation = $_REQUEST['affilliation'];
$track = $_REQUEST['track'];
$note = $_REQUEST['note'];
$comments = $_REQUEST['comments'];
//Mensagem Campos Obrigatorio
if (empty($name)) {
echo "<script>alert('Please, provide a valide DJ Name');</script>";
echo "<script>history.go(-1);</script>";
}
if (empty($email)) {
echo "<script>alert('Please, provide a valide E-Mail');</script>";
echo "<script>history.go(-1);</script>";
}
if (empty($country)) {
echo "<script>alert('Country is Required');</script>";
echo "<script>history.go(-1);</script>";
}
if (empty($affilliation)) {
echo "<script>alert('Affiliation is Required');</script>";
echo "<script>history.go(-1);</script>";
}
if (empty($track)) {
echo "<script>alert('What is your favority track?');</script>";
echo "<script>history.go(-1);</script>";
}
if (empty($note)) {
echo "<script>alert('What is your rating to this track?');</script>";
echo "<script>history.go(-1);</script>";
}
if (empty($comments)) {
echo "<script>alert('Let us know your comment');</script>";
echo "<script>history.go(-1);</script>";
}
$msg .= "<font face='Verdana' size='2'><b>Name:</b> \t$name</font><br>";
$msg .= "<font face='Verdana' size='2'><b>Country:</b> \t$country</font><br>";
$msg .= "<font face='Verdana' size='2'><b>Affilliation:</b> \t$affilliation</font><br>";
$msg .= "<font face='Verdana' size='2'><b>Favourite Track:</b> \t$track</font><br>";
$msg .= "<font face='Verdana' size='2'><b>Rating:</b> \t$note</font><br>";
$msg .= "<font face='Verdana' size='2'><b>Comments:</b> \t$comments</font><br>";
$msg .= "<font face='Verdana' size='2'><b>E-mail:</b> \t$email</font><br>";
$msg .= "<font face='Verdana' size='2'><b>IP:</b> \t$ip</font><br>";
$msg .= "<font face='Verdana' size='2'><b>Date:</b> \t$data</font><br>";
$msg .= "<font face='Verdana' size='2'><b>Hour:</b> \t$hora</font><br>";
// Enviando o E-mail
$mensagem = "$msg";
$remetente = "$email";
$destinatario = "feedback@promotrack.com.br";
$assunto = "Feedback Bump Strong EP";
$headers = "From: ".$remetente."\nContent-type: text/html";
// Caso tenha problema no envio da mensagem
if(!mail($destinatario,$assunto,$mensagem,$headers )){
print "problem in your feedback, please, try again";
} else {
//agora vamos imprimir na tela o resultado ou a resposta
echo "Thanks your support!<br />
If you are have problem with your download, please report to info@promotrack.com.br";
echo "<script>window.location.href='/download/bralli_records_BR083_promo_pack.zip'</script>";
}
?>
</body>
</html>
Thanks in advance for any help!
best regards
Jason Bralli


LinkBack URL
About LinkBacks



Reply With Quote
