I need a little help.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
eshabaevdesigns
Forum Newbie
Posts: 1
Joined: Wed Sep 30, 2009 8:56 pm

I need a little help.

Post 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
bhushanahirrao
Forum Newbie
Posts: 5
Joined: Wed Nov 05, 2008 6:39 am

Re: I need a little help.

Post 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";
}
?>
Post Reply