{"id":76,"date":"2014-07-02T14:12:40","date_gmt":"2014-07-02T18:12:40","guid":{"rendered":"http:\/\/salzlechner.com\/dev\/?p=76"},"modified":"2016-03-11T07:17:58","modified_gmt":"2016-03-11T12:17:58","slug":"sending-smtp-email-via-ssl-using-chilkat","status":"publish","type":"post","link":"http:\/\/salzlechner.com\/dev\/2014\/07\/02\/sending-smtp-email-via-ssl-using-chilkat\/","title":{"rendered":"Sending SMTP Email via SSL using Chilkat"},"content":{"rendered":"<pre class=\"lang:default decode:true  \">Integer hoMailMan\r\nGet Create (RefClass(cComChilkatMailMan2)) 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 ComSmtpHost of hoMailMan to \"hostname\"\r\nSet ComSmtpPort of hoMailMan to 587\r\nSet ComSmtpSsl of hoMailMan to True\r\nSet ComStartTLS of hoMailMan to True    \/\/ depends on server\r\n            \r\nSet ComSmtpUsername of hoMailMan to \"user\"\r\nSet ComSmtpPassword of hoMailMan to \"password\" \r\n            \r\nInteger hoEmail\r\nGet Create (RefClass(cComChilkatEmail2)) to hoEmail\r\nSend CreateComObject  to hoEmail\r\n            \r\n            \r\nSet ComSubject of hoEmail to \"Subject\"\r\nSet ComBody of hoEmail to \"Body\"\r\nSet ComFrom of hoEmail to \"from\"\r\n            \r\nGet ComAddTo of hoEmail \"recipient\" \"recipemail\" to iRetVal            \r\n            \r\nGet ComSendEmail of hoMailMan (pvComObject(hoEmail)) to iRetVal\r\nIf (not(iRetVal)) Begin\r\n    \/\/ error                \r\n    String sErrorText\r\n    Get ComLastErrorText of hoMailMan to sErrorText\r\n    Send Info_Box sErrorText\r\nEnd\r\n            \r\nSend ComCloseSmtpConnection to hoMailMan\r\n            \r\nSend Destroy to hoEmail\r\nSend Destroy to hoMailMan<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Need to send SMTP mail from DataFlex. This post shows how to use the chilkat control to send 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-76","post","type-post","status-publish","format-standard","hentry","category-dataflex"],"_links":{"self":[{"href":"http:\/\/salzlechner.com\/dev\/wp-json\/wp\/v2\/posts\/76","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=76"}],"version-history":[{"count":2,"href":"http:\/\/salzlechner.com\/dev\/wp-json\/wp\/v2\/posts\/76\/revisions"}],"predecessor-version":[{"id":295,"href":"http:\/\/salzlechner.com\/dev\/wp-json\/wp\/v2\/posts\/76\/revisions\/295"}],"wp:attachment":[{"href":"http:\/\/salzlechner.com\/dev\/wp-json\/wp\/v2\/media?parent=76"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/salzlechner.com\/dev\/wp-json\/wp\/v2\/categories?post=76"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/salzlechner.com\/dev\/wp-json\/wp\/v2\/tags?post=76"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}