Page 1 of 1

I need a little help.

Posted: Wed Sep 30, 2009 9:05 pm
by eshabaevdesigns
Hi guys,
I have a little problem creating a php contact form.
Everything is done the form is done, etc but when i test the contact form by send a message
and i open my email it says that this message is dangerous and the message does not open in my email

this is what i did
i created a file called send_contact.php and entered this code

<?php

$subject ="$subject";

$message="$detail";


$mail_from="$customer_mail";

$header="from: $name <$mail_from>";


$to ='webdesign911@hotmail.com';

$send_contact=mail($to,$subject,$message,$header);


if($send_contact){
echo "We've recived your contact information";
}
else {
echo "ERROR";
}
?>



is something wrong with it??
thank you

Re: I need a little help.

Posted: Thu Oct 01, 2009 3:54 am
by bhushanahirrao
<?php

$subject ="$subject";

$message="$detail"; //Where is $detail variable defined?


$mail_from="$customer_mail"; //Where is $customer_mail variable defined?

$header="from: $name <$mail_from>";


$to ='webdesign911@hotmail.com';

$send_contact=mail($to,$subject,$message,$header);


if($send_contact){
echo "We've recived your contact information";
}
else {
echo "ERROR";
}
?>