C++ Mail Library [Archive] - C Board

PDA

View Full Version : C++ Mail Library


Unregistered
02-16-2002, 07:46 PM
Where can I find a library that will let me send mail via C? I *do not* want to use a default-installed MDA; that makes me dependant on a user having a certain MDA installed. I want to have a function like so:

send_message("to","headers","message");

...that I can call from a C/C++ program to be compiled under GCC. Is this possible? If so, where can I find such a library?

-Kevin Kelley
kevinkelley@knkonline.net

rohit
02-17-2002, 10:19 PM
why don't you dig into RFC http://www.rfc-editor.org and read the rfc for the mail sending part it's really very simple


write a small socket program that connects to your smtp server (port 25) and send

USER username
PASS passwd // for authentication


mail from:<xyz@abc.com>
rcpt to:<recpient@mno.com>
HEADERS///goes here

DATA
bla bla bla
. // this is very important

you can read a good tutorial at http://hackingtruths.box.sk if you know socket programming then this is a piece of cake ...try ...

cheers
Rohit ;)