Email Function???

This is a discussion on Email Function??? within the Windows Programming forums, part of the Platform Specific Boards category; Does anyone know if there is an API Function to send an email? If not, can anyone show me an ...

  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,789
    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, 12:45 PM
  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

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