title: phpmailer send function does not return a value
body: <p>I have this piece of code here and phpmailer send function does not return true or false so the following is not working. JSON is ok and tested on other functions. I pinpointed the problem on mail->send. Mail is working and is sent to the email address but I do not get a return value. The code is a php file called form jquery as an ajax call. If anybody can help thanks in advance. </p>
  
  <pre><code>    if( !$mail-&gt;Send() )
  {
      // return 0 for failure
      $data[] = array("result" =&gt; 0 );
  }
  else
  {
      // return 1 for success
      $data[] = array("result" =&gt; 1 );
  }
  </code></pre>