{"id":1468,"date":"2010-11-02T12:48:20","date_gmt":"2010-11-02T10:48:20","guid":{"rendered":"http:\/\/www.limilabs.com\/blog\/?p=1468"},"modified":"2024-09-16T17:07:26","modified_gmt":"2024-09-16T15:07:26","slug":"specify-different-port-for-pop3-smtp-or-imap","status":"publish","type":"post","link":"https:\/\/www.limilabs.com\/blog\/specify-different-port-for-pop3-smtp-or-imap","title":{"rendered":"Specify different port for POP3, SMTP or IMAP"},"content":{"rendered":"\n<p>Establishing IMAP, POP3 or SMTP connection with <a href=\"\/mail\" title=\"\">Mail.dll email component<\/a> using a default port is easy:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\n\/\/ C#\n\nclient.Connect(\"mail.example.com\");\n\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: vb; title: ; notranslate\" title=\"\">\n' VB.NET\n\nclient.Connect(\"mail.example.com\")\n\n<\/pre><\/div>\n\n\n<p>If you need to <strong>specify different port<\/strong> just <strong>use overloaded<\/strong> version of Connect method:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\n\/\/ C#\n\nclient.Connect(\"mail.example.com\", 999);\n\/\/ -or-\nclient.Connect(\"mail.example.com\", 999, false);\n\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: vb; title: ; notranslate\" title=\"\">\n' VB.NET\n\nclient.Connect(\"mail.example.com\", 999)\n' -or-\nclient.Connect(\"mail.example.com\", 999, False)\n\n<\/pre><\/div>\n\n\n<p>If you are using <strong>SSL\/TLS<\/strong>:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\n\/\/ C#\n\nclient.ConnectSSL(\"mail.example.com\", 999);\n\/\/ -or-\nclient.Connect(\"mail.example.com\", 999, true);\n\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: vb; title: ; notranslate\" title=\"\">\n' VB.NET\n\nclient.ConnectSSL(\"mail.example.com\", 999)\n' -or-\nclient.Connect(\"mail.example.com\", 999, True)\n\n<\/pre><\/div>\n\n\n<p>Check out the <a href=\"https:\/\/www.limilabs.com\/blog\/ssl-vs-tls-vs-starttls-stls\" title=\"Default ports for email protocols\">difference between implicit and explicit SSL\/TLS modes<\/a>.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Establishing IMAP, POP3 or SMTP connection with Mail.dll email component using a default port is easy: If you need to specify different port just use overloaded version of Connect method: If you are using SSL\/TLS: Check out the difference between implicit and explicit SSL\/TLS modes.<\/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,28,42,50,57],"class_list":["post-1468","post","type-post","status-publish","format-standard","hentry","category-mail-dll","tag-c","tag-imap","tag-pop3","tag-smtp","tag-vb-net"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/posts\/1468"}],"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=1468"}],"version-history":[{"count":2,"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/posts\/1468\/revisions"}],"predecessor-version":[{"id":6651,"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/posts\/1468\/revisions\/6651"}],"wp:attachment":[{"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/media?parent=1468"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/categories?post=1468"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/tags?post=1468"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}