?
Solved

Using SMTP in C++ to send email

Posted on 2003-03-25
2
Medium Priority
?
1,163 Views
Last Modified: 2008-02-01
I'm trying to create my own email client in C++ with SMTP and found various libraries to use like SEE4C.  But I'm looking for some standard libs that are free and working.  Any Idea where I can get more info about sending mail over the internet with a C++ client and using MIME attachments?
0
Comment
Question by:vanrooyenm
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 2

Expert Comment

by:xyzzer
ID: 8201882
See rfc documents (eg. at www.faqs.org)
You can use winsock to do it in windows on the socket level.
0
 

Accepted Solution

by:
RattleSnake earned 200 total points
ID: 8202435
The best way I can imagine is source code and as long as you are working in a Windows environment, I would recommend you to have a look at these interesting ATL classes for implementing SMTP client functionality:

http://www.codeguru.com/internet/smtpSimpson.html

As this is open source, it is free and with some patience, you can also learn a lot by looking through the source code. Besides these classes, a bunch of other implementations can be found on www.codeguru.com as well btw. As far as RFC's are concerned:

ftp://ftp.isi.edu/in-notes/rfc821.txt - SMTP
ftp://ftp.isi.edu/in-notes/rfc822.txt - Email standarts
ftp://ftp.isi.edu/in-notes/rfc2045.txt - MIME
ftp://ftp.isi.edu/in-notes/rfc2821.txt - SMTP (Update)


0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
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 viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
Suggested Courses
Course of the Month13 days, 11 hours left to enroll

800 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