C++ Mail Library

This is a discussion on C++ Mail Library within the Linux Programming forums, part of the Platform Specific Boards category; Where can I find a library that will let me send mail via C? I *do not* want to use ...

  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
    kevinkelley@knkonline.net

  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:<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

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, 06:00 PM
  2. Property Set Library (PSL) - Announcement
    By vultur_gryphus in forum Projects and Job Recruitment
    Replies: 0
    Last Post: 05-29-2008, 07:04 AM
  3. Makefile for a library
    By sirmoreno in forum Linux Programming
    Replies: 5
    Last Post: 06-04-2006, 05:52 AM
  4. very weird .h problem
    By royuco77 in forum C++ Programming
    Replies: 1
    Last Post: 09-11-2005, 08:55 AM
  5. better c string functions
    By samps005 in forum C Programming
    Replies: 8
    Last Post: 11-04-2003, 01:28 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21