Może jak już taką partyzantkę robisz to lepiej tak:
<?php
$mail = $_REQUEST['email'];
$mess = $_REQUEST['message'];
$nazw = $_REQUEST['name'];
$sub = $_REQUEST['subject'];
$spam = intval( $_REQUEST['spam'] );
if (empty($mail) || empty($mess) || empty($sub) || empty($nazw))
{
header( "Location:http://laxer.eu/page/mail_error" );
}
else
{
if ($spam == '2')
{
$message = "Name: $_POST[name]\nEmail: $_POST[email]\n\n$_POST[message]";
$message = str_replace( '\r', '', $message );
$header = "'Content-type: text/html; charset=utf-8'". "\r\n";
$header .= "From: $_POST[name] &--#60;$_POST[email]&--#62;";
if (@mail("
[email protected]","$_POST[subject]","$message","$header"))
{
header('Location: http://laxer.eu/page/mail_sent');
}
else
{
header('Location: http://przestan.mnie.spamowac');
}
}
else
{
header('Location: http://przestan.mnie.spamowac');
}
}