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 need a little help.
Moderator: General Moderators
-
bhushanahirrao
- Forum Newbie
- Posts: 5
- Joined: Wed Nov 05, 2008 6:39 am
Re: I need a little help.
<?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";
}
?>
$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";
}
?>