{"id":78,"date":"2014-07-02T14:47:48","date_gmt":"2014-07-02T18:47:48","guid":{"rendered":"http:\/\/salzlechner.com\/dev\/?p=78"},"modified":"2016-03-11T07:16:30","modified_gmt":"2016-03-11T12:16:30","slug":"receiving-pop-email-via-ssl-using-chilkat","status":"publish","type":"post","link":"http:\/\/salzlechner.com\/dev\/2014\/07\/02\/receiving-pop-email-via-ssl-using-chilkat\/","title":{"rendered":"Receiving POP Email via SSL using Chilkat"},"content":{"rendered":"<pre class=\"lang:default decode:true  \" abp=\"2369\">Integer hoMailMan\r\nGet Create (RefClass(cComChilkatMailMan)) to hoMailMan\r\n            \r\nInteger iRetVal\r\nGet ComUnlockComponent of hoMailMan \"...\" to iRetVal\r\nIf (not(iRetVal)) Begin\r\n    \/\/ error\r\n    Procedure_Return\r\nEnd\r\n            \r\nSet ComMailHost of hoMailMan to \"host\"\r\nSet ComMailPort of hoMailMan to 995\r\nSet ComPopSsl of hoMailMan to True\r\nSet ComStartTLS of hoMailMan to True\r\n            \r\nSet ComPopUsername of hoMailMan to \"username\"\r\nSet ComPopPassword of hoMailMan to \"password\" \r\n            \r\nInteger hoEmailBundle\r\nGet Create (RefClass(cComChilkatEmailBundle)) to hoEmailBundle\r\nVariant vEmailBundle\r\n            \r\nGet ComCopyMail of hoMailMan to vEmailBundle\r\nSet pvComObject of hoEmailBundle to vEmailBundle                       \r\nIf (IsNullComObject(vEmailBundle)) Begin\r\n    String sErrorText\r\n    Get ComLastErrorText of hoMailMan to sErrorText\r\n    Send Info_Box sErrorText                \r\nEnd\r\nElse Begin            \r\n    Integer iLoop\r\n    For iLoop from 0 to (ComMessageCount(hoEmailBundle)-1)\r\n        Integer hoEmail\r\n        Variant vEmail\r\n                    \r\n        Get ComGetEmail of hoEmailBundle iLoop to vEmail\r\n                    \r\n        Get Create (RefClass(cComChilkatEmail)) to hoEmail\r\n        Set pvComObject of hoEmail to vEmail\r\n                    \r\n        Showln (ComSubject(hoEmail)) \r\n                    \r\n        Send Destroy to hoEmail\r\n    Loop   \r\nEnd\r\n            \r\nSend Destroy to hoMailMan<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This post shows how to use the chilkat control in DataFlex to read POP email<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","ngg_post_thumbnail":0,"footnotes":""},"categories":[6],"tags":[],"class_list":["post-78","post","type-post","status-publish","format-standard","hentry","category-dataflex"],"_links":{"self":[{"href":"http:\/\/salzlechner.com\/dev\/wp-json\/wp\/v2\/posts\/78","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/salzlechner.com\/dev\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/salzlechner.com\/dev\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/salzlechner.com\/dev\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/salzlechner.com\/dev\/wp-json\/wp\/v2\/comments?post=78"}],"version-history":[{"count":4,"href":"http:\/\/salzlechner.com\/dev\/wp-json\/wp\/v2\/posts\/78\/revisions"}],"predecessor-version":[{"id":294,"href":"http:\/\/salzlechner.com\/dev\/wp-json\/wp\/v2\/posts\/78\/revisions\/294"}],"wp:attachment":[{"href":"http:\/\/salzlechner.com\/dev\/wp-json\/wp\/v2\/media?parent=78"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/salzlechner.com\/dev\/wp-json\/wp\/v2\/categories?post=78"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/salzlechner.com\/dev\/wp-json\/wp\/v2\/tags?post=78"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}