Solved

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

Posted on 2003-10-22
3
243 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
ID: 9603350
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
ID: 10482416
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

770 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