{"id":1266,"date":"2010-10-25T15:32:03","date_gmt":"2010-10-25T13:32:03","guid":{"rendered":"http:\/\/www.limilabs.com\/blog\/?p=1266"},"modified":"2010-10-25T15:32:03","modified_gmt":"2010-10-25T13:32:03","slug":"login-to-pop3-server-in-using-apop","status":"publish","type":"post","link":"https:\/\/www.limilabs.com\/blog\/login-to-pop3-server-in-using-apop","title":{"rendered":"Login to POP3 server in using APOP"},"content":{"rendered":"<p>  APOP is a secure method of logging in to a POP3 mail server. Your password is encrypted while being transmitted over the network. Not all servers support APOP. The &#8216;HasTimeStamp&#8217; property usually tells that your server supports it.<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\n\/\/ C# version\n\nusing System;\nusing Limilabs.Mail;\nusing Limilabs.Client.POP3;\n\nclass Program\n{\n    static void Main(string&#x5B;] args)\n    {\n        using (Pop3 pop3 = new Pop3())\n        {\n            pop3.Connect(&quot;server.example.com&quot;);\n\n            if (pop3.HasTimeStamp == true)\n                pop3.LoginAPOP(&quot;user&quot;, &quot;password&quot;);\n            else\n                pop3.Login(&quot;user&quot;, &quot;password&quot;);\n\n            \/\/ Receive all messages and display the subject\n            MailBuilder builder = new MailBuilder();\n            foreach (string uid in pop3.GetAll())\n            {\n                IMail email = builder.CreateFromEml(\n                    pop3.GetMessageByUID(uid));\n\n                Console.WriteLine(&quot;subject: {0}&quot;, email.Subject);\n            }\n            pop3.Close();\n        }\n    }\n};\n<\/pre>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">\n' VB.NET version\n\nImports System\nImports Limilabs.Mail\nImports Limilabs.Client.POP3\n\nPublic Module Module1\n    Public Sub Main(ByVal args As String())\n\n        Using pop3 As New Pop3()\n            pop3.Connect(&quot;server.example.com&quot;)\n\n            If pop3.HasTimeStamp = True Then\n                pop3.LoginAPOP(&quot;user&quot;, &quot;password&quot;)\n            Else\n                pop3.Login(&quot;user&quot;, &quot;password&quot;)\n            End If\n\n            ' Receive all messages and display the subject\n            Dim builder As New MailBuilder()\n            For Each uid As String In pop3.GetAll()\n                Dim email As IMail = builder.CreateFromEml( _\n                    pop3.GetMessageByUID(uid))\n\n                Console.WriteLine(&quot;subject: {0}&quot;, email.Subject)\n            Next\n            pop3.Close()\n        End Using\n\n    End Sub\nEnd Module\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>APOP is a secure method of logging in to a POP3 mail server. Your password is encrypted while being transmitted over the network. Not all servers support APOP. The &#8216;HasTimeStamp&#8217; property usually tells that your server supports it. \/\/ C# version using System; using Limilabs.Mail; using Limilabs.Client.POP3; class Program { static void Main(string&#x5B;] args) { [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[15,33,42,57],"class_list":["post-1266","post","type-post","status-publish","format-standard","hentry","category-mail-dll","tag-c","tag-email-component","tag-pop3","tag-vb-net"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/posts\/1266"}],"collection":[{"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/comments?post=1266"}],"version-history":[{"count":0,"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/posts\/1266\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/media?parent=1266"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/categories?post=1266"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/tags?post=1266"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}