Solved

send mail on NT

Posted on 2000-03-13
3
210 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
c++ array loading from DB inheriting previous data when empty 5 59
why "." vs "->" 23 119
C++ Language error 28 196
Embarcadero C++ Builder XE10.1 Berlin red arrow Indicator 2 17
Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

920 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

15 Experts available now in Live!

Get 1:1 Help Now