SMTP question with Vb.net 2003

  • Thread starter Thread starter Robert Dufour
  • Start date Start date
R

Robert Dufour

If I execute the commands in vb.net to send an Email using the localhost IIS
server using system.web.mail namespace, is there a way for my program to
detect that the sending of the e-mail has failed or succeeded? I could not
find any code samples on how to do this. Is sending e-mail this way a
'blind' send?

If use use a program like outlook in office , I get a warning back that a
message could not be delivered, well sometimes. I got a program that sends
automated delivery advise of goods bought to customers, we would like to be
sure that the advise got through if possible.

Thanks for any insights,

Bob
 
It depends on what you mean by fail. If you mean did it get there, then the
only way to check this is to give the email a valid return email address and
poll the box later to see if something came back with no Re: in the subject,
but even this is prone to error.

If by contrast you are asking did it actuall get sent then yes.

http://www.trainingon.net/Articles/Art141/Art141.html
 
Back
Top