Thread: E-mail?

  1. #1
    Programming is fun, mkay?
    Join Date
    Oct 2001
    Posts
    490

    Lightbulb E-mail?

    How do I e-mail a message to someone?
    Website(s): http://www16.brinkster.com/trifaze/

    E-mail: [email protected]

    ---------------------------------
    C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
    DirectX Version: 9.0b
    DX SDK: DirectX 8.1 SDK

  2. #2
    Registered User johnnie2's Avatar
    Join Date
    Aug 2001
    Posts
    186
    Connect to a mail server and use SMTP to communicate with it. Here's a reference.
    "Optimal decisions, once made, do not need to be changed." - Robert Sedgewick, Algorithms in C

  3. #3
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Also go to RFCEditor.org and look up the following;


    RFC 821 - SMTP, for sending simple mails

    RFC 1939 - POP3, for recieving mails

    RFC 1521 - MIME, for sending/recieving attachments


    There are loads of other RFC's that update each other, but these three are very helpfull.......

  4. #4
    You can also do it with outlook (or default e-mail client)
    Code:
    #include <shellapi.h>
    
    ShellExecute(hDlg, "open", "mailto:[email protected]", NULL, NULL, SW_SHOWNORMAL);
    You can also add the title and body of the mail but I forgot how to do it. If I find a code example I'll edit this post

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Trouble with DMA Segmentation Faults
    By firestorm717 in forum C Programming
    Replies: 2
    Last Post: 05-07-2006, 09:20 PM
  2. mail application
    By terracota in forum Networking/Device Communication
    Replies: 6
    Last Post: 07-31-2004, 04:36 PM
  3. Yahoo! Mail launch NEW features
    By beely in forum A Brief History of Cprogramming.com
    Replies: 19
    Last Post: 06-21-2004, 10:05 PM
  4. Mail Accounts?
    By ZakkWylde969 in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 06-20-2004, 12:57 PM
  5. the MAIL command in UNIX and Pipes
    By RoshanX in forum Linux Programming
    Replies: 19
    Last Post: 10-21-2003, 10:40 PM