catch (SmtpFailedRecipientsException ex) does not work
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
Ok guys before you say this question has been asked before the problem is that
try { mail.Send(blah) //if mailbox does not exist we get Mailbox unavailable. The server response was: No such user here. THis is clearly a SmtpFailedRecipientsException //now the whole idea of a try / catch is to allow the application to fall through to the catch if an error occurs //so why the hell does it stop here and not go to the catch part. makes this catch part useless... } catch(SmtpFailedRecipientsException ex) { }
Microsofts example are pretty straight forward and if you go by the example the above should work bit it does NOT...theLizard