Send Email Using Socket Programming

I need some help on how to send the rich text from rich edit box using Visual C++ 6.0. (send the rich text directly not send as attach file)

Thankyou.
chenlingAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

WynCommented:
mean to comment
0
carldeanCommented:
Your subject says you want to send e-mail using sockets.  Does this mean you want to send e-mail or does this mean you want to send data between processes using sockets?

If you just want to send e-mail (regardless of the transport) then you should look at the SMTP resources on Code Guru (www.codeguru.com - search for SMTP).

If you just want to send data between processes then you should adopt a different approach...

1. If the two processes are windows programs on the same machine then the easiest approach is to use the WM_COPYDATA message.

2. If the two processes aren't windows programs but they are on the same machine then you could use pipes or shared memory.

3. But if the processes are (or could possibly end up) on different machines then sockets are your answer.  Again for heaps of examples and discussions go to CodeGuru.
0
WynCommented:
Add name file
0
ytgprasadCommented:
Since you want to send the Edit box contents as a mail over sockets:

You should know more about the SMTP protocol. For this visit http://www.isi.edu/in-notes/rfc821.txt.

Then may be a bit of MIME headers you should know, which will assist you in making the header.

Once you know SMTP and mime headers then you will know, in what format you have to send the content of the edit box or a file or what ever it is, using sockets.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C++

From novice to tech pro — start learning today.