Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET SMTP

 AfterLogic Forum : MailBee.NET SMTP
Subject Topic: SMTP response code? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
jonr
Newbie
Newbie
Avatar

Joined: 04 December 2007
Location: Iceland
Online Status: Offline
Posts: 8
Posted: 06 December 2007 at 5:45am | IP Logged Quote jonr

Is it possible to catch smtp response codes when sending mails? Should I use DsnNotifyCondition?
J.
Back to Top View jonr's Profile Search for other posts by jonr Visit jonr's Homepage
 
jonr
Newbie
Newbie
Avatar

Joined: 04 December 2007
Location: Iceland
Online Status: Offline
Posts: 8
Posted: 06 December 2007 at 6:19am | IP Logged Quote jonr

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 View jonr's Profile Search for other posts by jonr Visit jonr's Homepage
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 06 December 2007 at 7:13am | IP Logged Quote Andrew

You may catch MailBeeSmtpNegativeResponseException exception and get MailBeeSmtpNegativeResponseException.ResponseCode value.

Best regards,
Andrew
Back to Top View Andrew's Profile Search for other posts by Andrew
 
jonr
Newbie
Newbie
Avatar

Joined: 04 December 2007
Location: Iceland
Online Status: Offline
Posts: 8
Posted: 10 December 2007 at 5:09am | IP Logged Quote jonr

Ok, I'm almost grokking it. In what situation would Smtp.Send() can return false?

Back to Top View jonr's Profile Search for other posts by jonr Visit jonr's Homepage
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 10 December 2007 at 5:18am | IP Logged Quote Andrew

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 View Andrew's Profile Search for other posts by Andrew
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide