CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2006
    Posts
    216

    Sending email from a VC++ app

    Suppose I have two email ids. Example:-
    idSender@yahoo.com
    idReceiver@yahoo.com

    I want to create a dialog based exe in VC++ 6.0. I place a button on the dialog. When I click the button, then an email should be sent from idSender@yahoo.com to idReceiver@yahoo.com
    The content of the email is simply "hello".

    Is this possible? If yes, then what code should I write in the click event of that button? If required, I can even hardcode the username and password of the sender id in the code.

  2. #2
    Join Date
    May 2005
    Posts
    4,954

    Re: Sending email from a VC++ app

    If a post helped you dont forget to "Rate This Post"

    My Article: Capturing Windows Regardless of Their Z-Order

    Cheers

  3. #3
    Join Date
    Oct 2006
    Posts
    216

    Re: Sending email from a VC++ app

    Thanks, golan.
    But what if I want to do it without opening outlook or any browser window? Sometimes when a Microsoft App crashes, then I get a message saying that Send report to Microsoft. When I click that button, then it does not open any browser but send the message. How to achieve that?

  4. #4
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: Sending email from a VC++ app

    Have a look at the Andreas Masur's example (post#12) in this thread
    Victor Nijegorodov

  5. #5
    Join Date
    May 2004
    Location
    45,000FT Above Nevada
    Posts
    1,539

    Re: Sending email from a VC++ app

    Quote Originally Posted by visharad View Post
    Suppose I have two email ids. Example:-
    idSender@yahoo.com
    idReceiver@yahoo.com

    I want to create a dialog based exe in VC++ 6.0. I place a button on the dialog. When I click the button, then an email should be sent from idSender@yahoo.com to idReceiver@yahoo.com
    The content of the email is simply "hello".

    Is this possible? If yes, then what code should I write in the click event of that button? If required, I can even hardcode the username and password of the sender id in the code.
    Check out this product...I have used this (and other products from them) in a few commercial products...they work flawless and are very reasonable and no royalties...great help/support also...


    http://www.marshallsoft.com/



    Jim
    Jim
    ATP BE400 CE500 (C550B-SPW) CE560XL MU300 CFI CFII

    "The speed of non working code is irrelevant"... Of course that is just my opinion, I could be wrong.

    "Nothing in the world can take the place of persistence. Talent will not; nothing is more common than unsuccessful men with talent. Genius will not; unrewarded genius is almost a proverb. Education will not; the world is full of educated derelicts. Persistence and determination are omnipotent. The slogan 'press on' has solved and always will solve the problems of the human race."...Calvin Coolidge 30th President of the USA.

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