|
Posted by bokke on 11/15/05 07:18
So I tried this ..
<?
$fname=$_POST['fname'];
$lname=$_POST['lname'];
$phone=$_POST['phone'];
$email=$_POST['email'];
$email = preg_replace( '/[\r\n]/', '', $email );
$comment=$_POST['comment'];
$to="michael@xxx.com";
$message="First Name:$fname\n\nLast Name:$lname
\n\nPhone:$phone\n\nTheir e-mail address is: $email\n\n
comment::\n\n$comment";
if(mail($to,"E-mail from MySite",$message,"From:$email\n")){
echo "Thank you $fname. Your Information has been inserted into my
contact database and forwarded to my E-Mail address. I'll get back to
you shortly.";
}else{
echo"There was a problem sending the message.";
}
?>
and today got this:
First Name:nachrally8358@xxx.com
Last Name:nachrally8358@xxx.com
Phone:nachrally8358@xxx.com
Their e-mail address is: nachrally8358@xxx.com
comment::
for
Content-Type: text/plain; charset=\"us-ascii\"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Subject: could not so easily have torn himself away. need hardly
bcc: onemoreaddress@hotpop.com
fad1169020f931de3b2f524b3f0d3c9a
..
So I took it down again .. please help.
Navigation:
[Reply to this message]
|