473,396 Members | 2,111 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Emailing from within app

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
Nov 21 '05 #1
3 1031
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" <Jo**@nospam.infovis.co.uk> wrote in message
news:eZ**************@TK2MSFTNGP09.phx.gbl...
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

Nov 21 '05 #2
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/groups?selm...TNGP10.phx.gbl

However this one has to be acknowledged by the user.

I hope this helps?

Cor

Nov 21 '05 #3
"John" <Jo**@nospam.infovis.co.uk> schrieb:
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?


In addition to the other replies, taking a look at the Exception Management
Application Block can be useful:

Exception Management Application Block for .NET
<URL:http://msdn.microsoft.com/netframework/downloads/samples/?pull=/library/en-us/dnbda/html/emab-rm.asp>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Stanley Cheung | last post by:
Hi all, I am developing the application for send emailing list, actually, i can perform to send a email 1 by 1 and do it on aspx page. I have a enquiry that how can the application change to...
2
by: Chuck | last post by:
I have a database that has a table in it with employee information (name, dob, email, etc). This is joined to a table that has tasks that are assigned to each individual that has a recurring date....
3
by: bill mahoney | last post by:
Hello, I am using access 2000 and I am trying to email a csv file. I have only used the docmd.sendobject command but you can only email objects that are within the access database ( as far as I...
3
by: tafs7 | last post by:
My code below is supposed to email me when an error occurs on the application, but it's not emailing anything. Am I missing something? I know the smtp servers I've tried work. I even added a...
4
by: Mike Moore | last post by:
What is the best way to launch outlook from an asp.net web page? Can you do this using MAPI or is there a control that you can purchase? We are unable to use SMTP. We use MS Exhange and MAPI...
2
by: Simon | last post by:
Hello all Sorry if this has been disscussed before but i can't find ref/examples I have a service that works based on the time of day , it looks into my db and creates a few more records etc...
2
by: Tim Hunter | last post by:
I have two questions regarding emailing from Access. My first question relates to how many email addresses is too much. I have a client who wants to email 1500 people at once. Is this possible or...
2
by: =?Utf-8?B?TWljaGFlbCBkZSBWZXJh?= | last post by:
To all, I was wondering if someone has sample VB.NET code that will help me send rows of a gridview into a body section of an e-mail. My goal is to present multiple rows within a gridview to a...
20
by: paul814 | last post by:
I've been working on this for some time now and have gotten nowhere...hoping someone here can help. I want to take and email all records in a database for the current date when this php page is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.