hi friends,
This is my Email program using PHP.
I cant receive mail from this program.
Is there any changes on my program or any server setting needed. If needed for server settings or any other things please help me.
thank you.
<body>
<form method="post" action="" enctype="multipart/form-data">
username:<input type="text" name="name" id="name" />
Email:<input type="text" name="email" id="email" />
Coments:<input type="text" name="coment" id="coment" />
<input type="submit" name="submit" id="submit" value="send Email" />
</form>
</body>
</html>
if(isset($_POST['submit']))
{
$msg='Name:'.$_POST['name']."\n".'Email:'.$_POST['email']."\n".'Coment'.$_POST['coment'];
mail('lanka.raj007@gmail.com','sample content us form',$msg);
echo "mail sent";
}
?>