Quote:
Originally Posted by tangoforce
Ok, here you are:
PHP Code:
<?
if(isset($_POST['sender_mail']) || isset($_POST['sender_message']) || isset($_POST['sender_subject']) || isset($_POST['sender_name']))
{
$to = "@.com";
$subject = stripslashes($_POST['sender_subject']);
$body = stripslashes($_POST['sender_message']);
$body .= "\n\n---------------------------\n";
$body .= "Mail sent by: " . $_POST['sender_name'] . " <" . $_POST['sender_mail'] . ">\n";
$body .= "Senders IP: $_SERVER[REMOTE_ADDR]\n";
$body .= "User-Agent: $_SERVER[HTTP_USER_AGENT]\n";
$header = "From: " . $_POST['sender_name'] . " <" . $_POST['sender_mail'] . ">\n";
$header .= "Reply-To: " . $_POST['sender_name'] . " <" . $_POST['sender_mail'] . ">\n";
$header .= "X-Mailer: PHP/" . phpversion() . "\n";
$header .= "X-Priority: 1";
if(@mail($to, $subject, $body, $header))
{
echo "output=sent";
}
else
{
echo "output=error";
}
}
else
{
echo "output=error";
}
?>
As many of us said, it wasn't hard work - I just changed $HTTP_POST_VARS to $_POST. I've no idea why you couldn't do that though as its been clearly explained many times.
I've also put in your requested IP address and user agent too.
Usage: Put your email address in where you see @.com and upload.
|
I GOT THE SUBJECT ERROR?
OKAY, I did all that ... sorry I couldn't do as everyone suggested ... I didn't mean to sound dumb ... but I do best what I do ... Graphic Arts ... but the coding as I said before is not my forte ... coding I don't understand ... just like coders don't get artists ... why we help each other ... no ? ... html ... css ... that coding I understand ... where this scripting goes ... I apologize for sounding stupid once again ... but I am learning as someone helps me ... and thank you ... I know where to put the file once created in the root ... but the rest as for changing the part you said that was explained clearly ... only gave me an anxiety attack ... thank you ... you are amazing at what you do ... !!!!!!!!!!!!!!!
Error problem just the same?