title: No recipient addresses found in header
body: <p>I got this error while sending a mail using PHP mail function</p>
  
  <p>Error Is:- No recipient addresses found in header </p>
  
  <p>Please help me out </p>
  
  <p>Here is the code</p>
  
  <p>//my code starts from here</p>
  
  <pre><code>        $to  = navruk@gmail.com;
          $subject  = $_POST['txtsub'];
          $messgae  = $_POST['txtmessage'];
          $signature = $_POST['txtsignature'];
          $redirect = "thanks.php";
          $error    = "error.php";
  
              $body ="&lt;table width='700' align='center' cellpadding='0' cellspacing='0' border='0'&gt;
                &lt;tr&gt;
                  &lt;td valign='top'&gt;
                        $messgae &lt;br&gt;
                  &lt;/td&gt;
                &lt;/tr&gt;
                &lt;tr&gt;
                  &lt;td valign='top'&gt;
                        $signature &lt;br&gt;
                  &lt;/td&gt;  
                &lt;/tr&gt;
              &lt;/table&gt;";
  
              $from      = "Aakrutisolutions&lt;info@aakrutisolutions.com&gt;";
              $headers  =  "From: $from\n";
              $headers .= 'MIME-Version: 1.0' . "\r\n";
              $headers .= "Content-type: text/html;charset=iso-8859-1\r\n"; 
              $headers .= "Content-Transfer-Encoding: 8bit\r\n";
              $headers .= "X-Priority: 1\r\n"; 
              $headers .= "X-MSMail-Priority: High\r\n"; 
              $headers .= "X-Mailer: Just My Server\r\n";
              $headers .= "".$body."\n";
  
                      if(mail($to, $subject, $message, $headers))
                      {
                          ?&gt;
                          &lt;script language="javascript"&gt;
                           location.href='bulkmail.php?sts=mailsent';
                          &lt;/script&gt;
                          &lt;?php
                      }
                      else
                      {
                          ?&gt;
                          &lt;script language="javascript"&gt;
                           location.href='bulkmail.php?sts=mailnotsent';
                          &lt;/script&gt;
                          &lt;?php
  
                      }
  </code></pre>
  
  <p>//My code ends here</p>