CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    May 1999
    Posts
    318

    URGENT : Send an email


    I want to open the default email service program (for example outlook) to send an email will the address, subject(facultative) and text already filled.

    It will be very good if you have a sample to give.

    Thanks.





  2. #2
    Join Date
    Apr 1999
    Posts
    23

    Re: URGENT : Send an email

    Hi,

    I really think MAPI is the solution you are looking for. Use MAPISendMail to send your message using the default browser. Try reading up on that topic.

    Chao


  3. #3
    Join Date
    Apr 1999
    Location
    Pakistan
    Posts
    207

    Re: URGENT : Send an email

    I have already posted a problem similar to this but I didnt get any reply. I would like to see the solution posted to you.
    Zulfi.


  4. #4
    Join Date
    May 1999
    Posts
    318

    Re: URGENT : Send an email

    ok i looked at the function MapiSendMail and it seems to be what i need.

    But the linker do not find the function MapiSendMail.

    What file (library i suppose) has to be added to the project ?
    And then what files must be installed with my release application (DLL for example) ?

    Thanks.









  5. #5
    Join Date
    Jun 1999
    Location
    Miami, FL
    Posts
    972

    Re: URGENT : Send an email

    There are plenty of classes here in CodeGuru for sending email, under the Internet section: http://www.codeguru.com/internet/index.shtml.

    For MAPI, I recommend Rob Manderson's classes: http://www.codeguru.com/internet/imapi.shtml.

    For SMTP, I recommend Jean-Francois Ouellet classes: http://www.codeguru.com/internet/update_smtp1.shtml.

    What's the difference? Well, MAPI is nice if your computer has a default MAPI client already on it (such as Microsoft Outlook). If you're sure that your program will always run on a box with a MAPI client, then use it. SMTP, on the other hand, is a low-level mechanism which uses a TCP connection to send messages to a mail server. So all it really needs from you is the name of the mail (SMTP) server, which you should be able to get from your system administrator.

    Regards,
    Alvaro


  6. #6
    Join Date
    May 1999
    Posts
    318

    Re: URGENT : Send an email

    Thanks,

    The MAPI class is just what i need.



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