About tracking mail-send failure

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

Guest

Hi Al

I am using SmtpMail.Send in a .NET(C#) program to send out a email message. How can I (or can I?) track if the mail is not delievered to the recipient successfully in the same program immediately after sending?

If I send email to, say, (e-mail address removed)(assume a not-existing address), I would still sending out the mail.The System.Web.HttpException doesn't help as it only capture a "non well-formed" email address (like xxxx without @yyyy.com).

Many thanks in advance
 
You need to dig to innerException(s). Useful information like "Unable to
relay" can be found there.

Regards,
Andrei Suvorov.

WEIWEIWEI said:
Hi All

I am using SmtpMail.Send in a .NET(C#) program to send out a email
message. How can I (or can I?) track if the mail is not delievered to the
recipient successfully in the same program immediately after sending??
If I send email to, say, (e-mail address removed)(assume a not-existing address), I
would still sending out the mail.The System.Web.HttpException doesn't help
as it only capture a "non well-formed" email address (like xxxx without
@yyyy.com).
 
Back
Top