Emailing from within app

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi

I have a vb.net app which I would like to email me if there is an error in a
try...catch construct. What is the way to email from within the app?

Thanks

Regards
 
John,
The "easiest" way to email from a .NET app is to use the MailMessage class
in the System.Web.Mail namespace.

The following site provides a plethora of information on System.Web.Mail.

http://www.systemwebmail.net/

Hope this helps
Jay
 
John,

It depends if it is a commercial or a in house application.

When it is a inhouse application and there are only NT5 and higher computers
you can look for the method Jay was providing you. With that you can send a
mail without that the users see it.

In the other cases can maybe a link to the users default mailer help you.

Something like as in the sample in this message below.

http://groups.google.com/[email protected]

However this one has to be acknowledged by the user.

I hope this helps?

Cor
 
Back
Top