Solved

C++ Code/program to use send an email client side, and server side to receive the email

Posted on 2003-10-22
3
221 Views
Last Modified: 2010-04-02
This could be done using componnents based programming language (such as Borland C++ Builder) but I want the original C++ code to generate a program that sends an email using regular WinAPI functions. The code will have some kind of function that will accept the "To" field, the "From" field, the "subject", and the "body" field. Then later on, the email will be sent to a server (I am guessing using a Winsock maybe). Server side also, a code will be ready to accept that email which will have to later forward it the appropriate address. Remember, such things can be done easily using ready-built components, I am intersted in the code itself that does all that (maybe built using Borland C++ for Windows or something like that, I dont know). Thanks alot fellows for your help. Consider mailing me if you want at zatsmee76@hotmail.com for any further clarifications.
0
Comment
Question by:zatsmee76
3 Comments
 
LVL 19

Accepted Solution

by:
Dexstar earned 25 total points
Comment Utility
That is a lot to ask for only 25 points.  :P

But, I can give you some links:
      An MFC class for sending mail via MAPI
            http://www.naughter.com/cmapi.html

      An MFC class for sending mail via SMTP
            http://www.naughter.com/smtp.html

      The source to a COM object for sending e-mail
            http://www.codeproject.com/internet/xymailclient.asp

      A Fast and easy SMTP class
            http://www.codeproject.com/internet/zsmtp.asp

That should be enough to get you started.

Dex*
0
 
LVL 11

Expert Comment

by:bcladd
Comment Utility
No comment has been added lately, so it's time to clean up this TA. I will
leave a recommendation in the Cleanup topic area that this question is:

Answered: Points to Dexstar

Please leave any comments here within the next four days.

Experts: Silence means you don't care. Grading recommendations are made in light
of the posted grading guidlines (http://www.experts-exchange.com/help.jsp#hi73).

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

-bcl (bcladd)
EE Cleanup Volunteer
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
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 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.

772 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

17 Experts available now in Live!

Get 1:1 Help Now