Thread: Email Function???

  1. #1
    Registered User minime6696's Avatar
    Join Date
    Aug 2001
    Posts
    267

    Question Email Function???

    Does anyone know if there is an API Function to send an email?

    If not, can anyone show me an example of a function to send an email using the POP3 Transfer protocall and WinSock?

    SPH

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    No simple function in API....but you can implement it yourself.....

    Open a socket to your SMTP server on port 25

    Send the following strings;

    [list=1][*]HELO mysmtpserver\r\n[*]MAIL FROM:<myaddress>\r\n[*]RCPT TO:<send address>\r\n[*]DATA\r\n[*]SUBJECT:thesubject\r\nFROM:you\r\nTO:to\r\n[*]the text you want to send[*]\r\n\r\n[*]QUIT\r\n[/list=1]

    After each \r\n, listen for a response.........

    That should work

  3. #3
    Unregistered
    Guest

  4. #4
    Registered User minime6696's Avatar
    Join Date
    Aug 2001
    Posts
    267

    Smile AWSUM! :)

    Thankx a lot, I will try that!

    SPH

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Undefined Reference Compiling Error
    By AlakaAlaki in forum C++ Programming
    Replies: 1
    Last Post: 06-27-2008, 11:45 AM
  2. Message class ** Need help befor 12am tonight**
    By TransformedBG in forum C++ Programming
    Replies: 1
    Last Post: 11-29-2006, 11:03 PM
  3. Including lib in a lib
    By bibiteinfo in forum C++ Programming
    Replies: 0
    Last Post: 02-07-2006, 02:28 PM
  4. Game Pointer Trouble?
    By Drahcir in forum C Programming
    Replies: 8
    Last Post: 02-04-2006, 02:53 AM
  5. Question..
    By pode in forum Windows Programming
    Replies: 12
    Last Post: 12-19-2004, 07:05 PM