|
Posted by bokke on 11/02/05 05:29
I have a simple form asking for name, e-mail and comment on page one.
Page two sends the form via e-mail to me and thanks the person for
filling in the form.
But I've started getting this in my inbox? I think I'm being used here
- any ideas."Their e-mail address is:" is hard coded
Their e-mail address is: an
Content-Type: text/plain; charset=\"us-ascii\"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Subject: take half
bcc: onemoreaddress@hotpop.com
usually I would get,
Their e-mail address is: soandso@soanso.com
here is the e-mail code:
<?
$fname=$_POST['fname'];
$lname=$_POST['lname'];
$phone=$_POST['phone'];
$email=$_POST['email'];
$comment=$_POST['comment'];
$to="me@ssoandso.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.";
}
?>
Navigation:
[Reply to this message]
|