Emailing from within app

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
 
J

Jay B. Harlow [MVP - Outlook]

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
 
C

Cor Ligthert

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
 

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

Top