CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Guest

    How can I pop up the default mail client to send an email with a document attached.

    How can I pop up the default mail client to send an email with a document attached (how Windows Explorer - send to Mail Recipient).
    I have VC++5 Enterprise version.


  2. #2
    Join Date
    Apr 1999
    Posts
    90

    Re: How can I pop up the default mail client to send an email with a document attached.

    See the "MAPI Support in MFC" topic in the DevStudio help.


  3. #3
    Join Date
    Apr 1999
    Location
    Arlington, VA
    Posts
    21

    Use SMTP as "default e-mail client".

    First, since you are using MFC, look at the MAPI class created by Rob Manderson on CodeGuru http://www.codeguru.com/internet/imapi.shtml. If your program cannot assume that MAPI is avalable, read on...

    I don't think that there is a "default" e-mail client you could load, or a standard COM (or other) interface common to all e-mail client programs. My advice is to use SMTP (Simple Mail Transport Protocol). An advantage of SMTP is that your client need not even have an e-mail account, or a e-mail client installed.

    At a high level, an SMTP would work like this. When your program needs to send an e-mail, you would create a socket, connect to the server, then perform reads and writes that make up the actual message. For the low-down on SMTP check out http://www.alcpress.com/rfc/mail/std10.htm. Of course CodeGuru also offers some help with SMTP, check-out http://www.codeguru.com/internet/index.shtml.

    You may contact me directly for some sample Visual C++ 5.0 code to send an e-mail via SMTP.

    William A. Walseth


  4. #4
    Join Date
    Apr 1999
    Posts
    90

    Re: How can I pop up the default mail client to send an email with a document attached.

    Actually, there is a default simple mapi client. Its not automatically set. You have to set it within the mail tool that you'd like to be your default.


  5. #5
    Guest

    Re: Use SMTP as "default e-mail client".

    Sir ,
    Kindly send some sample source code of e-mail using SMTP

    Anil .S
    [email protected]


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured