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#
  4. SSL in Pop3 connection

SSL in Pop3 connection

Scheduled Pinned Locked Moved C#
helpcsharpsysadminsecurityquestion
3 Posts 2 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.
  • D Offline
    D Offline
    DKalepu
    wrote on last edited by
    #1

    Hi All, I am trying to develop POP3 application in C# and have successfully managed to create a connection with POP3 server on port 110. here is the sample code ihv written for this: Server = new TcpClient(POPServ.Text, 110); NetStrm = Server.GetStream(); RdStrm = new StreamReader(NetStrm); Inorder to retrieve messages from a service such as Gmail, i need to enable the SSL. I don't want to use any pre-built component. Is it possible to use SSL functionality without using any 3rd party components?? if so, could anyone please assist me on this... Meanwhile, I have tried to connect to gmail server using the port 995. Its connected successfully, but my application getting hanged at particular line of code: (bolded below) Server = new TcpClient(POPServ.Text, 995); NetStrm = Server.GetStream(); RdStrm = new StreamReader(NetStrm); plz help me on this issue... Thanks in Advance.

    L 1 Reply Last reply
    0
    • D DKalepu

      Hi All, I am trying to develop POP3 application in C# and have successfully managed to create a connection with POP3 server on port 110. here is the sample code ihv written for this: Server = new TcpClient(POPServ.Text, 110); NetStrm = Server.GetStream(); RdStrm = new StreamReader(NetStrm); Inorder to retrieve messages from a service such as Gmail, i need to enable the SSL. I don't want to use any pre-built component. Is it possible to use SSL functionality without using any 3rd party components?? if so, could anyone please assist me on this... Meanwhile, I have tried to connect to gmail server using the port 995. Its connected successfully, but my application getting hanged at particular line of code: (bolded below) Server = new TcpClient(POPServ.Text, 995); NetStrm = Server.GetStream(); RdStrm = new StreamReader(NetStrm); plz help me on this issue... Thanks in Advance.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Hi It depends on the .net version you use. if you're using .net 1.1 you will have to use a 3rd party library (the mentalis.org security lib is pretty good and free) in .net 2.0 there are security classes in the System.Net.Security - Namespace greets m@u

      D 1 Reply Last reply
      0
      • L Lost User

        Hi It depends on the .net version you use. if you're using .net 1.1 you will have to use a 3rd party library (the mentalis.org security lib is pretty good and free) in .net 2.0 there are security classes in the System.Net.Security - Namespace greets m@u

        D Offline
        D Offline
        DKalepu
        wrote on last edited by
        #3

        Hi, thanks for replying.. I am using .net 2.0 & yes i got SSLProtocols. but didn't find any "usessl" or "enablessl" method... if you are aware of anything, plz help me out... Thanks.

        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