i have a code which Send updates to members in my site to their email Address.
it working all the time,Suddenly i noticed its no longer working..
what might be the Course of this....
i used the function to send different updates to members and in all the sectors its not working))

help me to overcome this.
here is the script:

$subject="$loggain Accepted your friend request on Kislat.Com ";
$content="$loggain Accepted your friend request on Kislat.Com  
to view your friend click http://www.shule.com";
mail($to, $subject, $content,$from);

echo"Your accepted a  friend         request";



Following code might help you.



    $recipients = $mto;
	# SMTP parameters - Mail accountname/port/username/password
    $params["host"] = "mail.adatapost.com";
    $params["port"] = "25";
    $params["auth"] = true;
    $params["username"] = "info@adatapost.com";
    $params["password"] = "password";

     $mail_object =& Mail::factory("smtp", $params);
     $mail_object->send($recipients, $headers, $mbody);
	 print "Mail Sent";
	   print "Fill the fields";
<form method="post" action="sample.php">
    <table border="1" width="300">
		  <td><input type="text" name="from"/></td>
		  <td><input type="text" name="to"/></td>
		  <td><input type="text" name="subject"/></td>
		  <textarea name="body"></textarea>
		  <td colspan="2" align="center">
             <input type="submit" name="cmd" value="Submit"/>

thankX ....the script helped to solve the Problem)))

thankx i`m testing it.....

and dont' forget to add reputation point.