Solved

send mail on NT

Posted on 2000-03-13
3
199 Views
Last Modified: 2010-04-02
hi,
I'm programming c++.
what I'm trying to do is send mail on windows NT.
I wanted to run it on system tray and if I shutdown the server ,forexample, it'll send a mail to certain places.
it doesnt matter what kind of mail it'll send, but I have to know if it's possible with c++ and how it is done.
please help me with that.

0
Comment
Question by:dalgin
3 Comments
 
LVL 4

Expert Comment

by:nils pipenbrinck
ID: 2611474
sending a mail from a c program is easy..

take a look at the MAPISendMail function.. I can give you an example source that sends a short mail.

nils
0
 
LVL 1

Expert Comment

by:ntdragon
ID: 2611607
try using c++builder
it has an e-mail server component
that will do the job for you
and i didn't try to the must be a way to put it in the system tray
0
 
LVL 14

Accepted Solution

by:
AlexVirochovsky earned 200 total points
ID: 2611641
Simple MAPI Console Application
http://support.microsoft.com/support/kb/articles/q171/0/96.asp
It is example for send/receive mail
I hope, it helps. Alex
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now