Home All Groups Group Topic Archive Search About

SMTP question with Vb.net 2003

Author
4 Mar 2006 5:08 PM
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

Author
4 Mar 2006 6:03 PM
Terry Burns
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

--
Terry Burns
http://TrainingOn.net


Show quoteHide quote
"Robert Dufour" <bduf***@sgiims.com> wrote in message
news:OKz9246PGHA.2816@TK2MSFTNGP15.phx.gbl...
> 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
>
>