email error reporting mechanisms from c# components deployed on non-Exchange remote clients.

H

Hazz

If I were to deploy components to clients whose Windows infrastructure is
unknown, ie. not sure they have Microsoft Exchange running or not, how would
I set up a kind of Dr. Watson like mechanism?

Does the SMTP class work? What do I need to know about the Collaboration
Data Objects for Windows 2000 (CDOSYS) message component?

If CDO as it currently works on Win2K is a robust easy to setup/administer
mechanism, then I would think that includ ing some code directly into the
exception handling mechanisms, perhaps creating a delegate to call a
function which does this,,,,, then it shouldn't be too difficult a task.

Any ideas would be appreciated before I dive into this "Customer Error
Reporting" system that would receive crash reports from its client
component.

Thank you. -hazz
 
S

Sean Brzozowski

Any ideas would be appreciated before I dive into this "Customer Error
Reporting" system that would receive crash reports from its client
component.

You might be interested in the article "C# SMTP Mail without SMTP Service or
CDO" (@ http://www.eggheadcafe.com/articles/20030316.asp)

I implemented it in an "error reporting via email" custom task that I wrote
for use in MSBuild script and it works like a charm.

HTH
Sean Brzozowski
 
H

Hazz

Sean,
Thank you. Your app works like a champ. Test solution and everything!

I guess it is simply enough to just make one simple assumption with a client
using this.
If an end-user where using an application of mine, how does the admin
process go with regards to

1. SMTP Server.
2. Reply to address. (which in my test case is the same as 1 above.

I guess I would hard code (2) or use a config file to update my SMTP
address.
I need to ask more questions about the SMTP Server. I guess that is really
nothing that my client installation would need to get, I could supply all
that. What my component really needs and what I understand your code is
utilizing....is just the destination server/address.

I could use other means to identify from whom the error message is
originating from.

Thank you for this great head start!

-hazz

1. In a
 
H

Hazz

whoops!..something slipped.... I see that a static method for a
quicksendmail is an option with this tool or there is the possibility of
instantiating the class and using member methods... I get back to the same
question I have to answer is how to add the following to an assembly
installed on client 'x'. I think a config file would be easiest and then
get that custom section of the application config file programmatically at
run time. thx a whole lot! -hazz
1. recipient@domain___com
2. mail.domain.com
3. sender@domain__com
 
C

Chad Z. Hower aka Kudzu

Hazz said:
If I were to deploy components to clients whose Windows infrastructure
is unknown, ie. not sure they have Microsoft Exchange running or not,
how would I set up a kind of Dr. Watson like mechanism?

Not all systems have CDO installed. Here is an example that uses Indy (free,
with source) and does not require CDO.

http://www.codeproject.com/csharp/IndySMTP.asp


--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Empower ASP.NET with IntraWeb
http://www.atozed.com/IntraWeb/
 
C

Chad Z. Hower aka Kudzu

Hazz said:
Thank you Kudzu and thank you for the test app. And I like that you are
open sourcer...

Its not just me but the whole team. :)
Are the files needed for the project references; Indy.Sockets and
Borland.VclRrtl both contained in the executable from your website?
http://www.atozed.com/indy/plus/Files.iwp

Yes. http://www.indyproject.org/ is the main site, the site above just offers
a free installer. I'll double check but Im pretty sure the installer has been
updated to include the Borland.VclRtl, if not its on www.indyproject.org for
sure.


--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Develop ASP.NET applications easier and in less time:
http://www.atozed.com/IntraWeb/
 
H

Hazz

Thank you Chad.

Chad Z. Hower aka Kudzu said:
Its not just me but the whole team. :)


Yes. http://www.indyproject.org/ is the main site, the site above just
offers
a free installer. I'll double check but Im pretty sure the installer has
been
updated to include the Borland.VclRtl, if not its on www.indyproject.org
for
sure.


--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Develop ASP.NET applications easier and in less time:
http://www.atozed.com/IntraWeb/
 

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