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