473,385 Members | 2,180 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,385 software developers and data experts.

Monitor SMTP server

Hey all,

I need to connect to an SMTP server and get a notification when it gets a
new mail to send. I want to be able to 'read' that email (retrieve recipient
information for example).
Is that possible? After much much researching I came across this article on
MSDN:
http://msdn.microsoft.com/library/de...ngmngsinks.asp
but it is *horrible*. I downloaded the needed files for it and get stuck in
step 2 even (I have some missing files that supposedely are in the download,
but they aren't). Anyway, that article won't help me.

Does anyone have any sample code or other good articles about how to
accomplish this?

Thanks,

Razzie
Nov 16 '05 #1
7 2971
> I need to connect to an SMTP server and get a notification when it gets a
new mail to send. I want to be able to 'read' that email (retrieve recipient
information for example).
What *kind* of SMTP-server?
Is that possible? After much much researching I came across this article on
MSDN:
http://msdn.microsoft.com/library/de...ngmngsinks.asp
but it is *horrible*. I downloaded the needed files for it and get stuck in
step 2 even (I have some missing files that supposedely are in the download,
but they aren't). Anyway, that article won't help me.


Well, the stuff is for the Exchange Server. Do you run it?

bye
Rob
Nov 16 '05 #2
Not sure what SMTP server you are talking about, but this article and
accompanying code is to be used with Windows 2000 SMTP or Exchange server
only.

Willy.

"Razzie" <ra****@quicknet.nl> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hey all,

I need to connect to an SMTP server and get a notification when it gets a
new mail to send. I want to be able to 'read' that email (retrieve
recipient information for example).
Is that possible? After much much researching I came across this article
on MSDN:
http://msdn.microsoft.com/library/de...ngmngsinks.asp
but it is *horrible*. I downloaded the needed files for it and get stuck
in step 2 even (I have some missing files that supposedely are in the
download, but they aren't). Anyway, that article won't help me.

Does anyone have any sample code or other good articles about how to
accomplish this?

Thanks,

Razzie

Nov 16 '05 #3
Thanks repliers,

It is meant for Exchange yes. I know little about Exchange or the different
kind of SMTP. I figured since every SMTP server uses the same protocol
(smtp:P) it doesn't matter what kind of smtp server.

Anyway to be a little more precise, if a person uses outlook, webmail,
telnet, whatever, to send an email, I want to directly check that email for
certain settings. If only I knew how to connect to an smtp server and get
the emails being sent... I take it I have to use SMPT event sinks, but was
wondering if it has to be so difficult:

- I found 2 articles (one on codeproject, and that msdn article) they all
use com objects, with which I have difficulties deploying it to a server
other than my developing pc
- Both articles didn't work for me (the MSDN one is really missing some
files in its download, the codeproject one didn't want to deploy for me)

Is there any other easy tutorial out there or some code samples?

Thanks,

Razzie

"Razzie" <ra****@quicknet.nl> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hey all,

I need to connect to an SMTP server and get a notification when it gets a
new mail to send. I want to be able to 'read' that email (retrieve
recipient information for example).
Is that possible? After much much researching I came across this article
on MSDN:
http://msdn.microsoft.com/library/de...ngmngsinks.asp
but it is *horrible*. I downloaded the needed files for it and get stuck
in step 2 even (I have some missing files that supposedely are in the
download, but they aren't). Anyway, that article won't help me.

Does anyone have any sample code or other good articles about how to
accomplish this?

Thanks,

Razzie

Nov 16 '05 #4
If you run Exchange Server 2000 or 2003 you must use the technique described
in the MSDN article, note that you must install/run the code on the server
running Exchange, so if you don't have access to the server running
Exchange, you can forget about eventing.
Note that eventing is a service offered by the smtp service on W2K and W2K3
and Exchange 2000/2003, this is not part of the standard so other servers do
not apply.
Maybe you could start explaining what problem you had and what you mean
with step 2 in the article.

Willy.

"Razzie" <ra****@quicknet.nl> wrote in message
news:em*************@tk2msftngp13.phx.gbl...
Thanks repliers,

It is meant for Exchange yes. I know little about Exchange or the
different kind of SMTP. I figured since every SMTP server uses the same
protocol (smtp:P) it doesn't matter what kind of smtp server.

Anyway to be a little more precise, if a person uses outlook, webmail,
telnet, whatever, to send an email, I want to directly check that email
for certain settings. If only I knew how to connect to an smtp server and
get the emails being sent... I take it I have to use SMPT event sinks, but
was wondering if it has to be so difficult:

- I found 2 articles (one on codeproject, and that msdn article) they all
use com objects, with which I have difficulties deploying it to a server
other than my developing pc
- Both articles didn't work for me (the MSDN one is really missing some
files in its download, the codeproject one didn't want to deploy for me)

Is there any other easy tutorial out there or some code samples?

Thanks,

Razzie

"Razzie" <ra****@quicknet.nl> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hey all,

I need to connect to an SMTP server and get a notification when it gets a
new mail to send. I want to be able to 'read' that email (retrieve
recipient information for example).
Is that possible? After much much researching I came across this article
on MSDN:
http://msdn.microsoft.com/library/de...ngmngsinks.asp
but it is *horrible*. I downloaded the needed files for it and get stuck
in step 2 even (I have some missing files that supposedely are in the
download, but they aren't). Anyway, that article won't help me.

Does anyone have any sample code or other good articles about how to
accomplish this?

Thanks,

Razzie


Nov 16 '05 #5
Thanks for the details.

My first problem was I didn't have midl compiler. I downloaded the Platform
SDK for it. When I ran the nmake.exe program in step 2 of the msdn tutorial
again, it still couldn't find it. So, running Program Files\Microsoft Visual
Studio .NET\Common7\Tools\vsvars32.bat doesn't work, since the path for midl
is not right.
Then I ran the platform SDK command prompt, now it can find midl.
Now I got an error something like cannot open input file 'MailMsg.idl' and
the program (nmake.exe) aborted. It did find another idl file, just not that
one (and god knows what others it need).

It doesn't say in the MSDN that I need to have anything else installed, so
not to flame, but when I install all this, correct 3 things and still get
errors because I miss a certain file, with no pointers in the MSDN why or
where to get it, I get a bit... angry ;)

Any help with this is appreciated :)

Razzie
"Willy Denoyette [MVP]" <wi*************@pandora.be> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
If you run Exchange Server 2000 or 2003 you must use the technique
described in the MSDN article, note that you must install/run the code on
the server running Exchange, so if you don't have access to the server
running Exchange, you can forget about eventing.
Note that eventing is a service offered by the smtp service on W2K and
W2K3 and Exchange 2000/2003, this is not part of the standard so other
servers do not apply.
Maybe you could start explaining what problem you had and what you mean
with step 2 in the article.

Willy.

"Razzie" <ra****@quicknet.nl> wrote in message
news:em*************@tk2msftngp13.phx.gbl...
Thanks repliers,

It is meant for Exchange yes. I know little about Exchange or the
different kind of SMTP. I figured since every SMTP server uses the same
protocol (smtp:P) it doesn't matter what kind of smtp server.

Anyway to be a little more precise, if a person uses outlook, webmail,
telnet, whatever, to send an email, I want to directly check that email
for certain settings. If only I knew how to connect to an smtp server and
get the emails being sent... I take it I have to use SMPT event sinks,
but was wondering if it has to be so difficult:

- I found 2 articles (one on codeproject, and that msdn article) they all
use com objects, with which I have difficulties deploying it to a server
other than my developing pc
- Both articles didn't work for me (the MSDN one is really missing some
files in its download, the codeproject one didn't want to deploy for me)

Is there any other easy tutorial out there or some code samples?

Thanks,

Razzie

"Razzie" <ra****@quicknet.nl> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hey all,

I need to connect to an SMTP server and get a notification when it gets
a new mail to send. I want to be able to 'read' that email (retrieve
recipient information for example).
Is that possible? After much much researching I came across this article
on MSDN:
http://msdn.microsoft.com/library/de...ngmngsinks.asp
but it is *horrible*. I downloaded the needed files for it and get stuck
in step 2 even (I have some missing files that supposedely are in the
download, but they aren't). Anyway, that article won't help me.

Does anyone have any sample code or other good articles about how to
accomplish this?

Thanks,

Razzie



Nov 16 '05 #6
If you have VS2003 installed with the C++ option enabled, you should find
MIDL.EXE in %VSINSTALLDIR%\Common7\Tools.
Same goes for 'MailMsg.idl' which is found in
%VSINSTALLDIR%\VC\PlatformSdk\include, assumed you selected "Platform sdk"
install during VS setup.

Willy.

"Razzie" <ra****@quicknet.nl> wrote in message
news:uw**************@TK2MSFTNGP15.phx.gbl...
Thanks for the details.

My first problem was I didn't have midl compiler. I downloaded the
Platform SDK for it. When I ran the nmake.exe program in step 2 of the
msdn tutorial again, it still couldn't find it. So, running Program
Files\Microsoft Visual Studio .NET\Common7\Tools\vsvars32.bat doesn't
work, since the path for midl is not right.
Then I ran the platform SDK command prompt, now it can find midl.
Now I got an error something like cannot open input file 'MailMsg.idl' and
the program (nmake.exe) aborted. It did find another idl file, just not
that one (and god knows what others it need).

It doesn't say in the MSDN that I need to have anything else installed, so
not to flame, but when I install all this, correct 3 things and still get
errors because I miss a certain file, with no pointers in the MSDN why or
where to get it, I get a bit... angry ;)

Any help with this is appreciated :)

Razzie
"Willy Denoyette [MVP]" <wi*************@pandora.be> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
If you run Exchange Server 2000 or 2003 you must use the technique
described in the MSDN article, note that you must install/run the code on
the server running Exchange, so if you don't have access to the server
running Exchange, you can forget about eventing.
Note that eventing is a service offered by the smtp service on W2K and
W2K3 and Exchange 2000/2003, this is not part of the standard so other
servers do not apply.
Maybe you could start explaining what problem you had and what you mean
with step 2 in the article.

Willy.

"Razzie" <ra****@quicknet.nl> wrote in message
news:em*************@tk2msftngp13.phx.gbl...
Thanks repliers,

It is meant for Exchange yes. I know little about Exchange or the
different kind of SMTP. I figured since every SMTP server uses the same
protocol (smtp:P) it doesn't matter what kind of smtp server.

Anyway to be a little more precise, if a person uses outlook, webmail,
telnet, whatever, to send an email, I want to directly check that email
for certain settings. If only I knew how to connect to an smtp server
and get the emails being sent... I take it I have to use SMPT event
sinks, but was wondering if it has to be so difficult:

- I found 2 articles (one on codeproject, and that msdn article) they
all use com objects, with which I have difficulties deploying it to a
server other than my developing pc
- Both articles didn't work for me (the MSDN one is really missing some
files in its download, the codeproject one didn't want to deploy for me)

Is there any other easy tutorial out there or some code samples?

Thanks,

Razzie

"Razzie" <ra****@quicknet.nl> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hey all,

I need to connect to an SMTP server and get a notification when it gets
a new mail to send. I want to be able to 'read' that email (retrieve
recipient information for example).
Is that possible? After much much researching I came across this
article on MSDN:
http://msdn.microsoft.com/library/de...ngmngsinks.asp
but it is *horrible*. I downloaded the needed files for it and get
stuck in step 2 even (I have some missing files that supposedely are in
the download, but they aren't). Anyway, that article won't help me.

Does anyone have any sample code or other good articles about how to
accomplish this?

Thanks,

Razzie



Nov 16 '05 #7
I have VS2002 and not those files installed. I will browse my VS CD's for
them though, hopefully I can find them. Thanks.

"Willy Denoyette [MVP]" <wi*************@pandora.be> wrote in message
news:OK**************@TK2MSFTNGP09.phx.gbl...
If you have VS2003 installed with the C++ option enabled, you should find
MIDL.EXE in %VSINSTALLDIR%\Common7\Tools.
Same goes for 'MailMsg.idl' which is found in
%VSINSTALLDIR%\VC\PlatformSdk\include, assumed you selected "Platform sdk"
install during VS setup.

Willy.

"Razzie" <ra****@quicknet.nl> wrote in message
news:uw**************@TK2MSFTNGP15.phx.gbl...
Thanks for the details.

My first problem was I didn't have midl compiler. I downloaded the
Platform SDK for it. When I ran the nmake.exe program in step 2 of the
msdn tutorial again, it still couldn't find it. So, running Program
Files\Microsoft Visual Studio .NET\Common7\Tools\vsvars32.bat doesn't
work, since the path for midl is not right.
Then I ran the platform SDK command prompt, now it can find midl.
Now I got an error something like cannot open input file 'MailMsg.idl'
and the program (nmake.exe) aborted. It did find another idl file, just
not that one (and god knows what others it need).

It doesn't say in the MSDN that I need to have anything else installed,
so not to flame, but when I install all this, correct 3 things and still
get errors because I miss a certain file, with no pointers in the MSDN
why or where to get it, I get a bit... angry ;)

Any help with this is appreciated :)

Razzie
"Willy Denoyette [MVP]" <wi*************@pandora.be> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
If you run Exchange Server 2000 or 2003 you must use the technique
described in the MSDN article, note that you must install/run the code
on the server running Exchange, so if you don't have access to the
server running Exchange, you can forget about eventing.
Note that eventing is a service offered by the smtp service on W2K and
W2K3 and Exchange 2000/2003, this is not part of the standard so other
servers do not apply.
Maybe you could start explaining what problem you had and what you mean
with step 2 in the article.

Willy.

"Razzie" <ra****@quicknet.nl> wrote in message
news:em*************@tk2msftngp13.phx.gbl...
Thanks repliers,

It is meant for Exchange yes. I know little about Exchange or the
different kind of SMTP. I figured since every SMTP server uses the same
protocol (smtp:P) it doesn't matter what kind of smtp server.

Anyway to be a little more precise, if a person uses outlook, webmail,
telnet, whatever, to send an email, I want to directly check that email
for certain settings. If only I knew how to connect to an smtp server
and get the emails being sent... I take it I have to use SMPT event
sinks, but was wondering if it has to be so difficult:

- I found 2 articles (one on codeproject, and that msdn article) they
all use com objects, with which I have difficulties deploying it to a
server other than my developing pc
- Both articles didn't work for me (the MSDN one is really missing some
files in its download, the codeproject one didn't want to deploy for
me)

Is there any other easy tutorial out there or some code samples?

Thanks,

Razzie

"Razzie" <ra****@quicknet.nl> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
> Hey all,
>
> I need to connect to an SMTP server and get a notification when it
> gets a new mail to send. I want to be able to 'read' that email
> (retrieve recipient information for example).
> Is that possible? After much much researching I came across this
> article on MSDN:
> http://msdn.microsoft.com/library/de...ngmngsinks.asp
> but it is *horrible*. I downloaded the needed files for it and get
> stuck in step 2 even (I have some missing files that supposedely are
> in the download, but they aren't). Anyway, that article won't help me.
>
> Does anyone have any sample code or other good articles about how to
> accomplish this?
>
> Thanks,
>
> Razzie
>



Nov 16 '05 #8

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

Similar topics

7
by: Bruce MacDonald | last post by:
I am unable to see the health monitor SQL table functions (e.g.: SQLPROC.HEALTH_CONT_HI). Have I missed a utility which registers the functions? DB2 8.1.3.132 WR21324. Another point about the...
0
by: quantumonline | last post by:
Hi, Our SMTP server requires SMTP AUTH. Is there any way to configure the health monitor to use SMTP AUTH? Thanks
3
by: nycjay | last post by:
hello, i am just getting started as a dba. ny current task is to set up notification for health alerts. so, we have the health monitor running, and it is currently putting health alerts (space...
3
by: dale zhang | last post by:
Hi, I write an asp.net web application. It has a “Contact Us” page, where users fill in their email, subject and text and hit send. Then the email will go to my hard coded yahoo email...
1
by: bivin | last post by:
hai i am requesting your technical support. please help me. i have been working with this for five days. the problem is relating with the smtp. i am trying to send an email from the asp.net...
34
by: antonyliu2002 | last post by:
I've set up the virtual smtp server on my IIS 5.1 like so: 1. Assign IP address to "All Unassigned", and listen to port 25. 2. Access Connection granted to "127.0.0.1". 3. Relay only allow...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.