Thread: C++ Mail Library

  1. #1
    Unregistered
    Guest

    C++ Mail Library

    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
    [email protected]

  2. #2
    Registered User rohit's Avatar
    Join Date
    Feb 2002
    Posts
    69
    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:<[email protected]>
    rcpt to:<[email protected]>
    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

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. What's an import library?
    By chiefmonkey in forum C++ Programming
    Replies: 1
    Last Post: 06-19-2009, 05:00 PM
  2. Property Set Library (PSL) - Announcement
    By vultur_gryphus in forum Projects and Job Recruitment
    Replies: 0
    Last Post: 05-29-2008, 06:04 AM
  3. Makefile for a library
    By sirmoreno in forum Linux Programming
    Replies: 5
    Last Post: 06-04-2006, 04:52 AM
  4. very weird .h problem
    By royuco77 in forum C++ Programming
    Replies: 1
    Last Post: 09-11-2005, 07:55 AM
  5. better c string functions
    By samps005 in forum C Programming
    Replies: 8
    Last Post: 11-04-2003, 01:28 PM