Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. catch (SmtpFailedRecipientsException ex) does not work

catch (SmtpFailedRecipientsException ex) does not work

Scheduled Pinned Locked Moved ASP.NET
helpsysadmintutorialquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    theOzLizard
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups