title: PHPMailer DSN How to get error when address not exist
body: <p>I use PHPMailer for PHP5/6 and i try to make script witch will send mail and get error like "550 No Such User Here".</p>
  
  <p>I read about DSN, and try tips from this <a href="https://stackoverflow.com/questions/10384821/how-to-set-dsn-delivery-status-notification-for-phpmailer">How to set DSN (Delivery Status Notification) for PHPMailer?</a> topic, but it's doesnt work.
  (i found functin recipient where was</p>
  
  <pre><code>return $this-&gt;sendCommand(
          'RCPT TO',
          'RCPT TO:&lt;' . $toaddr . '&gt;',
          array(250, 251)
      );
  )
  </code></pre>
  
  <p>and i try change link</p>
  
  <pre><code>'RCPT TO:&lt;' . $toaddr . '&gt;',
  </code></pre>
  
  <p>to </p>
  
  <pre><code>'RCPT TO:&lt;' . $toaddr . '&gt; NOTIFY=SUCCESS,FAILURE ORCPT=rfc822;' . $toaddr ."" .self::CRLF,
  </code></pre>
  
  <p>but i doesnt work.
  I was try add it by function AddCustomHeader but it fail too.</p>
  
  <p>This is my code:</p>
  
  <pre><code>private function send($username, $password, $from, $nameFrom, $replay, $subject, $email) {
      try {
          $_ = Zend_Registry::get('Zend_Translate');
          $mail = new PHPMailer(true);
  
          $mail-&gt;IsSMTP();
          $mail-&gt;SMTPDebug = 2;
          $mail-&gt;SMTPAuth = true;
          $mail-&gt;SMTPSecure = "tls";
          $mail-&gt;Host = "smtp.gmail.com";
          $mail-&gt;Port = 587;
          $mail-&gt;SMTPKeepAlive = true;
          $mail-&gt;Username = $username;
          $mail-&gt;Password = $password;
          $mail-&gt;SetFrom($from, $nameFrom);
          $mail-&gt;AddReplyTo($replay, $nameFrom);
          $mail-&gt;Subject = $subject;
          $mail-&gt;MsgHTML($this-&gt;_content);
          $mail-&gt;AddAddress($email);
  //            $mail-&gt;AddCustomHeader( "X-Confirm-Reading-To: development.tabi@gmail.com" );
  //            $mail-&gt;AddCustomHeader( "NOTIFY=SUCCESS,FAILURE ORCPT=rfc822; $email" );
  //            $mail-&gt;AddCustomHeader( "Disposition-Notification-To: development.tabi@gmail.com" );
  //            $mail-&gt;AddCustomHeader( "Return-receipt-to: development.tabi@gmail.com" );
          if (!$mail-&gt;Send()) {
              return array(
                  'status' =&gt; false,
                  'message' =&gt; $mail-&gt;ErrorInfo
              );
          } else {
              return array(
                  'status' =&gt; true,
                  'message' =&gt; $_-&gt;_('__MAIL_WAS_SEND__')
              );
          }
      } catch (Exception $e) {
          return array(
                  'status' =&gt; false,
                  'message' =&gt; $e-&gt;getMessage()
              );
      }
      catch (phpmailerException $e) {
          return array(
                  'status' =&gt; false,
                  'message' =&gt; $e-&gt;getMessage()
              );
      }
  }
  </code></pre>
  
  <p>In result i have need script where:
  When i write real address, ex my_real_addres@gmail.com it will be send,
  but when i write fake address, ex my_fake_addres_which_not_exist@gmail.com will return me code 550, or any other error.</p>
  
  <p>Is there any options to do this ? becouse i need to get and save all information.</p>