Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Sending email in VC++ 6.0

Sending email in VC++ 6.0

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorial
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    naeemnimi
    wrote on last edited by
    #1

    Hello, Can somebody would tell me how to send email in C++ using smtp.

    T Mircea PuiuM 2 Replies Last reply
    0
    • N naeemnimi

      Hello, Can somebody would tell me how to send email in C++ using smtp.

      T Offline
      T Offline
      ThatsAlok
      wrote on last edited by
      #2

      naeemnimi wrote:

      Can somebody would tell me how to send email in C++ using smtp.

      here is an example :- http://www.codeproject.com/internet/csmtpconn.asp[^]

      "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

      cheers, Alok Gupta VC Forum Q&A :- I/ IV

      I 1 Reply Last reply
      0
      • N naeemnimi

        Hello, Can somebody would tell me how to send email in C++ using smtp.

        Mircea PuiuM Offline
        Mircea PuiuM Offline
        Mircea Puiu
        wrote on last edited by
        #3

        This coding example looks good: http://codeguru.earthweb.com/Cpp/I-N/network/messaging/article.php/c5417[^] SkyWalker

        1 Reply Last reply
        0
        • T ThatsAlok

          naeemnimi wrote:

          Can somebody would tell me how to send email in C++ using smtp.

          here is an example :- http://www.codeproject.com/internet/csmtpconn.asp[^]

          "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

          cheers, Alok Gupta VC Forum Q&A :- I/ IV

          I Offline
          I Offline
          Intertherain
          wrote on last edited by
          #4

          http://www.codeproject.com/internet/csmtpconn.asp\[^\] The method that the above site provides may be useful to send e_mail on the old smtp protocol servers. This kind of servers dont need the user name and password when they are connected to send e_mail. But now most of the e_mail servers update e-mail system for security and against rubbish e-mails.They ask users to provide user names and passwords to be connected. to send mail,you should follow: 1、use socket to connect to the smtp server . 2、send "ehlo the smtp server \r\n" to the smtp server . you will receive the "250" from the smtp server,which stands for ok. 3、send "auth login \r\n" .then will receive the "334" from the smtp server. 4、send "your user name\r\n" which is encoded by the base64 arithmetic. you will receive the "334" . 5、send "your password"which encoded by the base64 arithmetic. you will receive the "235" that stands for ok. 6、so much to write.then follow the above site to continue. libo

          T 1 Reply Last reply
          0
          • I Intertherain

            http://www.codeproject.com/internet/csmtpconn.asp\[^\] The method that the above site provides may be useful to send e_mail on the old smtp protocol servers. This kind of servers dont need the user name and password when they are connected to send e_mail. But now most of the e_mail servers update e-mail system for security and against rubbish e-mails.They ask users to provide user names and passwords to be connected. to send mail,you should follow: 1、use socket to connect to the smtp server . 2、send "ehlo the smtp server \r\n" to the smtp server . you will receive the "250" from the smtp server,which stands for ok. 3、send "auth login \r\n" .then will receive the "334" from the smtp server. 4、send "your user name\r\n" which is encoded by the base64 arithmetic. you will receive the "334" . 5、send "your password"which encoded by the base64 arithmetic. you will receive the "235" that stands for ok. 6、so much to write.then follow the above site to continue. libo

            T Offline
            T Offline
            ThatsAlok
            wrote on last edited by
            #5

            Intertherain wrote:

            This kind of servers dont need the user name and password when they are connected to send e_mail. But now most of the e_mail servers update e-mail system for security and against rubbish e-mails.They ask users to provide user names and passwords to be connected.

            You may Be right.. But I have you this class to send mail to Yahoo and Gmail... I believe two most popular email service of world (if i am not wrong)

            "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

            cheers, Alok Gupta VC Forum Q&A :- I/ IV

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups