Link to home
Start Free TrialLog in
Avatar of fdsnet
fdsnet

asked on

E-mail

Does anyone have or know of libraries of source code for sending e-mail programmatically? I'm using a command line shell to do this from C right now. I'm using Netscape's postmail. But I want to do this directly in the code instead.
Avatar of carterl
carterl

Depends how low-level you want to get.  If you're programming with a GUI builder such as Visual C++ or Builder then there are plenty of ready made components out there.

If you want to do the actual low-level coms handling at SMTP level then it's a simple case of creating a TCP/IP connection to which ever server is going to be your mail forwarder on port 25 and talking SMTP to the server.

The RFC's for SMTP are littered all over the place, I usually go to www.internic.net and somewhere around there is a list of all the major RFCs.  Hope this helps.
Avatar of fdsnet

ASKER

I'm really looking for a code sample. I can write to the RFC821 text. But sometimes that doesn't encompass all of the pitfalls.
well it's actually pretty simple .
go to:
http://www.best.com/~regulus/bin/coolmail.zip
and download the code it's for VC++ right now  but with some
adjustment it will work briliantly on C++ Builder or whaterver ,

ASKER CERTIFIED SOLUTION
Avatar of arbitrary
arbitrary

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of fdsnet

ASKER

i didn't use it, but it was a good suggestion.