Hello.
Dont know why my email form doesnt work on one server. Its working (was working) on 2 others. This one is set on windows. I get comment thats message has been sent and .... nothing is coming.
Please help.
email form - working on 2 servers doesnt work on 1 other -
Moderator: General Moderators
-
Greg_BigPhpAmator
- Forum Newbie
- Posts: 15
- Joined: Thu Feb 12, 2009 1:56 pm
Re: email form - working on 2 servers doesnt work on 1 other -
Code would be nice.
-
Greg_BigPhpAmator
- Forum Newbie
- Posts: 15
- Joined: Thu Feb 12, 2009 1:56 pm
Re: email form - working on 2 servers doesnt work on 1 other -
Code: Select all
<HTML>
<HEAD>
<STYLE TYPE="text/css">
<!--
A:link { color: black; text-decoration: none}
A:visited { color: black; text-decoration: none}
A:hover { color: red; text-decoration: underline;}
BODY { font-size:10; font-family: arial, sans-serif, tahoma, verdana; }
<STYLE TYPE="text/css">
<!--
A:link { font-size:12; color: #1156AE; text-decoration: none}
A:visited { font-size:12; color: #1156AE; text-decoration: none}
A:hover { font-size:12; color: #053258; text-decoration: underline;}
A.l:link { color: #666666; text-decoration: none }
A.l:visited { color: #666666; text-decoration: none}
A.l:hover { color: #333333; text-decoration: none}
-->
</STYLE>
<a name="gora"></a>
<BODY oncontextmenu="return false" ondragstart="return false" ondrag="return false">
<?
function host_ip()
{
global $HOST;
// Zczytujemy zmienne srodowiskowe
$cache = $_SERVER['REMOTE_ADDR'];
$proxy = $_SERVER['HTTP_X_FORWARDED_FOR'];
// Bawimy sie w rozpoznanie
if($proxy == '')
{ $HOST = @gethostbyaddr($cache); }
else
{
list ($lok, $hos) = split('[,]', $proxy);
$czysty = ltrim($hos);
$hosti = @gethostbyaddr($czysty);
if($hosti == $czysty || $hosti == '') // Poprawka z 18 II po sugestii zg?oszonej przez stera
{ $hosti = @gethostbyaddr($cache); };
$HOST = "$hosti ($lok)";
};
};
host_ip();
$hoscik=$HOST;
$subject="Sent from website";
$od=$_POST['firma'];
$od1=$_POST['firma1'];
$town=$_POST['town'];
$state=$_POST['state'];
$zip=$_POST['zip'];
$email=$_POST['email'];
$uwagi=$_POST['tresc'];
$ip= $REMOTE_ADDR;
echo('<b><br><br><center>
<div align="center" style="border-collapse: collapse; font-size:14; border: 1px solid #999999; width:400; background-color:#d8e4f0;"><center><br>Thank You.<br>
<br>Message has been sent.<br><br>
</center></div>
<A HREF="contact.html" target="_parent"><font style="text-decoration: none" face="Wingdings 3" color="#FF7405}"> t </font>go back</a>
</center>
');
$tresc="\nHOST: $hoscik IP: $ip
\nSender: \nFirst name: $od , Last Name: $od1
\nAddress: \nTown: $town , State: $state
\nEmail: $email\n\n -----------------------
\nComment/Question: \n$uwagi";
mail("email@gmail.com", "$subject", $tresc, "Reply-To: $email");
?> </h3>
</body>
</html>