how to know failed to send the E-mail using php
<pre><code> $subjt    = $subject;
 $message  = $message;
 $toinfo  .= $snteadd[$i];
 $headers  = "MIME-Version: 1.0 \r\n";
 $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
 $headers .= "From: &lt;$fromemailid&gt;\r\n";
 $headers .= "Cc: &lt;$sendCC&gt;\r\n";
 $headers .= "Bcc: &lt;$sendBCC&gt;\r\n"; 
 $headers .= "Return-Path: &lt;$fromemailid&gt;\r\n"; 
 $headers .= "Errors-To: &lt;$fromemailid&gt;\r\n";
 $headers .= "X-Mailer: PHP 4.x". phpversion()
 @mail($snteadd[$i], $subjt, $message, $headers);
</code></pre>
