Hi there,
I have been using a flash based email tool on a Linux platform and it worked fine. I then moved onto a unix platform and it doesn't. The ISP sent me this instruction..
For this you can use the PHP function “mail”. The correct way to use this function on our Unix hosting server is :
mail("recipient","subject","content","From: sender","-f sender")
Don’t forget to specify the “-f” variable.
I know that the mail() function only has 4 arguments so does this mean include the "sender" and "f-sender" into my $headers?
Also where do I specify "-f" variable?
Please help my nose is starting to bleed! 😕
here is my code...
<?php
$sendTo = "me@me.com";
$subject = "My Flash site reply";
$headers = "From: " . $POST["name"] . "<". $POST["email"] . ">"\r\n";
$headers .= "Reply-To: " . $POST["email"] . "\r\n";
$headers .= "Return-path: " . $POST["email"];
$message = $_POST["message"];
mail($sendTo, $subject, $message, $headers);
?>