| Author |  | 
      
        | jonr Newbie
 
  
  
 Joined: 04 December 2007
 Location: Iceland
 Online Status: Offline
 Posts: 8
 | 
          Is it possible to catch smtp response codes when sending mails? Should I use DsnNotifyCondition?
           | Posted: 06 December 2007 at 5:45am | IP Logged |   |  
           | 
 |  J.
 | 
       
        | Back to Top |       | 
       
       
        |  | 
        | jonr Newbie
 
  
  
 Joined: 04 December 2007
 Location: Iceland
 Online Status: Offline
 Posts: 8
 | 
          What I mean, is that I am trying to figure out how I can get messages from the smtp server when Send() method fails. Like 501 errors.
           | Posted: 06 December 2007 at 6:19am | IP Logged |   |  
           | 
 |  
 | 
       
        | Back to Top |       | 
       
       
        |  | 
        | Andrew AfterLogic Support
 
  
 
 Joined: 28 April 2006
 Location: United States
 Online Status: Offline
 Posts: 1189
 | 
          You may catch MailBeeSmtpNegativeResponseException exception and get MailBeeSmtpNegativeResponseException.ResponseCode value.
           | Posted: 06 December 2007 at 7:13am | IP Logged |   |  
           | 
 |  
 Best regards,
 Andrew
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | jonr Newbie
 
  
  
 Joined: 04 December 2007
 Location: Iceland
 Online Status: Offline
 Posts: 8
 | 
          Ok, I'm almost grokking it. In what situation would Smtp.Send() can return false?
           | Posted: 10 December 2007 at 5:09am | IP Logged |   |  
           | 
 |  
 
 | 
       
        | Back to Top |       | 
       
       
        |  | 
        | Andrew AfterLogic Support
 
  
 
 Joined: 28 April 2006
 Location: United States
 Online Status: Offline
 Posts: 1189
 | 
          Exception can be thrown for lots of various reasons from rejecting recipients list by SMTP server to unexpected network error.
           | Posted: 10 December 2007 at 5:18am | IP Logged |   |  
           | 
 |  
 Best regards,
 Andrew
 | 
       
        | Back to Top |     | 
       
       
        |  |