Error reporting with SmtpMail.Send()

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to add guaranteed delivery (or at least guarantee sent) to some code
using SmtpMail.Send(). The method is void. Does Send() throw exceptions if
it cannot connect to the Smtp server or has some other error?

I could then store the message on an MSMQ and retry later. What do you
think of this design?
 
Hi,

Mail certainly isn't guaranteed delivery, even if Send returns without an
error.

If you have the ability to use MSMQ immediately, that might be a better
approach.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top