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

Thread: Sending email using SMTP

  1. #1
    Join Date
    Aug 2013
    Posts
    52

    Unhappy Sending email using SMTP

    I am writing a C++ program for sending emails automatically. I downloaded sample code which uses SMTP for sending emails. But the program is not working. When we are calling gethostbyname("smtp.gmail.com") I get an error:WSAHOST_NOT_FOUND.

    To send emails I had to log in a proxy server. I manually logged in the proxy server and then only I tried my program.

    Please help me.

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    19,734

    Re: Sending email using SMTP

    Victor Nijegorodov

  3. #3
    Join Date
    Mar 2001
    Posts
    2,527

    Re: Sending email using SMTP

    There are libraries for email with google. There will be sample code out there. It will allow you to work with the security. Your ISP may incidentally block SMTP.
    Last edited by ahoodin; January 19th, 2016 at 10:41 AM.
    ahoodin
    To keep the plot moving, that's why.

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)