{"id":1220,"date":"2011-01-29T13:34:51","date_gmt":"2011-01-29T13:34:51","guid":{"rendered":"http:\/\/www.theperfectarts.com\/?p=1220"},"modified":"2013-01-13T15:43:07","modified_gmt":"2013-01-13T15:43:07","slug":"simple-imap-connection-script","status":"publish","type":"post","link":"https:\/\/www.ktchost.com\/blog\/simple-imap-connection-script\/","title":{"rendered":"Simple imap connection script."},"content":{"rendered":"<p>We can test IMAP service by using following simple script.<\/p>\n<blockquote><p><strong>&lt;?<br \/>\n$mbox = imap_open(&#8220;{mail.loacalhost:143\/novalidate-cert}INBOX&#8221;, &#8220;test@test123.com&#8221;, &#8220;1q2w3e&#8221;);<br \/>\nprint_r(imap_errors());<br \/>\n?&gt;<\/strong><\/p><\/blockquote>\n<p>If you want to force SSL connection only then remove <strong>novalidate-cert <\/strong>from above script.<strong><strong><br \/>\n<\/strong><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>We can test IMAP service by using following simple script. &lt;? $mbox = imap_open(&#8220;{mail.loacalhost:143\/novalidate-cert}INBOX&#8221;, &#8220;test@test123.com&#8221;, &#8220;1q2w3e&#8221;); print_r(imap_errors()); ?&gt; If you want to force SSL connection <a class=\"mh-excerpt-more\" href=\"https:\/\/www.ktchost.com\/blog\/simple-imap-connection-script\/\" title=\"Simple imap connection script.\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-1220","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/posts\/1220"}],"collection":[{"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/comments?post=1220"}],"version-history":[{"count":8,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/posts\/1220\/revisions"}],"predecessor-version":[{"id":3252,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/posts\/1220\/revisions\/3252"}],"wp:attachment":[{"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/media?parent=1220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/categories?post=1220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/tags?post=1220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}