Locked Send an email

  • Wednesday, April 11, 2012 12:52 PM
     
     

    I have a application developed in MFC on VS2010 platform. Now I want to provide the  email notification functionality in that application.

    I searched on the web to get the sample code but the available code either having the third-party component or it is not working with gmail and hotmail domains. This might be happening due to SSL and TLS connection settings on mail server.

    Can anybody provide the MFC class details or sample code to implement this functionality?


    Thanks and Regards, Mahesh R. Kulkarni

All Replies

  • Wednesday, April 11, 2012 2:12 PM
     
     

        I have a good CSmtp class, which I testes along the time, if you want I will gladly give you, just email me ... or give me your email, and I will send it to you.

  • Wednesday, April 11, 2012 2:39 PM
     
     Proposed

    Here you can find a lot classes and information about how to send emails:

    http://www.codeproject.com/KB/IP/#Email+%26+SMTP

    This class may solve all your requirements:

    http://www.codeproject.com/Articles/623/CFastSmtp-Fast-and-easy-SMTP-class

  • Wednesday, April 11, 2012 3:49 PM
     
     

    Even if you want you also can use MAPI and outlook API to.

    Thanks


    Rupesh Shukla

  • Wednesday, April 11, 2012 5:54 PM
     
     

        By the way, I didn't find by now a MAPI class that could send email in background without to dispaly a confirm dialog (Send / Don't send, etc.), in case that I want to send an email without any user intervention ... or I didn't search enough ?

  • Wednesday, April 11, 2012 9:46 PM
     
     Proposed
  • Thursday, April 12, 2012 6:11 AM
     
     

    Hi Rupesh,

    Thanks a lot for the response. But I forgot to mention that there will not be outlook installed on the machine from where I want to send the email. So the MAPI approach is not feasible solution for me.

    Thanks a lot.


    Thanks and Regards, Mahesh R. Kulkarni

  • Thursday, April 12, 2012 6:14 AM
     
     

    Hi ,

    Thanks for the response.

    my email Id :marakulkarni@hotmail.com

    I want the simple class which will not require additional non- miscrosoft dll or librabry imported  to the application. It should send the email to all service providers.


    Thanks and Regards, Mahesh R. Kulkarni

  • Thursday, April 12, 2012 8:27 PM
     
     Proposed

    Oh Okay .Check out this link . it also contain code sample too.

    http://forums.codeguru.com/showthread.php?t=300530

    Thanks


    Rupesh Shukla