I need a little help.
Posted: Wed Sep 30, 2009 9:05 pm
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
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