Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Using SMTP in C++ to send email

Posted on 2003-03-25
2
Medium Priority
?
1,180 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
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
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

564 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