This is a discussion on E-mail? within the Windows Programming forums, part of the Platform Specific Boards category; How do I e-mail a message to someone?...

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

    Lightbulb E-mail?

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

    E-mail: trifaze_mattu@lycos.com

    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
    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
    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
    Banned maes's Avatar
    Join Date
    Aug 2001
    You can also do it with outlook (or default e-mail client)
    #include <shellapi.h>
    ShellExecute(hDlg, "open", "mailto:name@email.com", 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, 10:20 PM
  2. mail application
    By terracota in forum Networking/Device Communication
    Replies: 6
    Last Post: 07-31-2004, 05: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, 11:05 PM
  4. Mail Accounts?
    By ZakkWylde969 in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 06-20-2004, 01:57 PM
  5. the MAIL command in UNIX and Pipes
    By RoshanX in forum Linux Programming
    Replies: 19
    Last Post: 10-21-2003, 11:40 PM

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