hi everyone
when i send an email, i did a condition,
if(mail($recipient,$subject,$message))
echo nl2br("<b>Message Sent:</b>
To: $recipient
Subject: $subject
Message:
$message");
else
echo nl2br("Error");
the codes goes to the message send condition state all the parameter correctly. But actually i need not receive the email. what could be the problem? or is there anyting wrong with my coding?
$name=$_POST['customerName'];
$email=$_POST['email'];
$comments=$_POST['customerFeedback'];
//Declare the variables
$recipient = "
[email protected]";
$subject = "PEM Feedback Form, From: $name";
$message = " Name:$name \n Email: $email \n Comments: $comments";
//mail() function sends the mail
if(mail($recipient,$subject,$message))
echo nl2br("<b>Message Sent:</b>
To: $recipient
Subject: $subject
Message:
$message");
else
echo nl2br("Error");
?>
i stuck for quite long le. can anyone help?
thanks in advance.