Hi my friends , I was working on a web page and want to send users comment to the website owner .I use wamp server .... Here is the php code
<?php
$to='compnay@yahoo.com';
$from=$_POST['txtEmail'];
$title=$_POST['txtTitle'];
$body=$_POST['txtMsg'];
if($_POST['form1'].submit)// to check wheter the form has been sent or not
//echo 'thank you' ;
{
if(mail($to,$title,$body,'From:'.' '.$from))
{
echo '<h1 class="pageName" >Thank you!
</h1>
<p>Email sent. We will contact you as soon as possible
</p><p><br /></p>';
}
else
{
echo '<h1 class="pageName">Email not sent!
</h1>
<p class="bodyText">Either the email you sent doesnt exist or
you didnt fill the fields appropriately<p><br /> </p>';
}
}
?>
peoples told me to make a correction to the php_ini() file ... and i did that too ... just changing the smtp to our ISP the port is still 25 ... but I didnt get anything new ... can any body help me please