Solved

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

Posted on 2003-10-22
3
235 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

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

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…
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…
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 learn how to clear a vector as well as how to detect empty vectors in C++.

867 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

21 Experts available now in Live!

Get 1:1 Help Now