{"id":269,"date":"2010-12-21T00:02:01","date_gmt":"2010-12-20T14:02:01","guid":{"rendered":"http:\/\/www.desiderata.com.au\/blog\/?p=269"},"modified":"2010-12-27T17:48:43","modified_gmt":"2010-12-27T07:48:43","slug":"sms-texting-from-delphi-via-redcoal-sms-soap-server","status":"publish","type":"post","link":"https:\/\/www.desiderata.com.au\/blog\/?p=269","title":{"rendered":"SMS Texting from Delphi via RedCoal SMS SOAP Server"},"content":{"rendered":"<p>Many Australian companies use RedCoal SMS texting services to send SMS texts to mobile phones from computers.<\/p>\n<p><a href=\"http:\/\/www.redcoal.com\/\">RedCoal <\/a>supplies an <a href=\"http:\/\/www.redcoal.com\/sms-api-gateway-mms.aspx\">API for its MIDA technology with VB and C++ examples<\/a> but no Delphi code.<\/p>\n<p><strong>I have created a Delphi demo with code<\/strong> using Delphi 2007, <strong>which you can <a href=\"http:\/\/www.desiderata.com.au\/code\/SMSText\/RedCoalSMS.zip\">download<\/a> and use free of charge<\/strong>.<\/p>\n<p>Of course, to actually use the SMS text service, you will need to <a href=\"http:\/\/download.redcoal.com.au\/mida.zip\">download the SDK from RedCoal<\/a> which includes a serial number generator which provides the serial number for your application, and you will need to email them for a trial SMS Key (developer&#8217;s trial lasts 1 month then there is a one off royalty free <a href=\"https:\/\/secure.redcoal.net\/1_product.aspx?PK=4\">developer&#8217;s license <\/a>of $A695).<\/p>\n<p>Finally, your client will need to open an SMS text service account with RedCoal to pay for the actual SMS texts sent (17-22c per SMS for pre-paid).<\/p>\n<p>Post script:<\/p>\n<p>If you deploy this in an organisation which uses a <strong>proxy server for internet<\/strong>, then you will need to detect this and set the HTTPWebNode.proxy property which must be in the format server:port (fortunately, this is the format used in Windows registry as outlined below):<\/p>\n<p>for example:<\/p>\n<p><em>RedCoalRIO.HTTPWebNode.Proxy := GetInternetProxy;<\/em><\/p>\n<p><em>function GetInternetProxy:String;<br \/>\nvar reg:TRegistry;<br \/>\nbegin<br \/>\nresult := &#8221;;<br \/>\nReg := TRegistry.Create;<br \/>\ntry<br \/>\nReg.RootKey := HKEY_CURRENT_USER;<br \/>\nif Reg.OpenKey(&#8216;\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings&#8217;,False) then<br \/>\nif Reg.readBool(&#8216;ProxyEnable&#8217;) then<br \/>\nbegin<br \/>\nReg.CloseKey;<br \/>\nif Reg.OpenKey(&#8216;\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings&#8217;,False) then<br \/>\nResult := Reg.readString(&#8216;ProxyServer&#8217;);<br \/>\nend;<br \/>\nfinally<br \/>\nReg.CloseKey;<br \/>\nReg.Free;<br \/>\nend;<br \/>\nend;<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Many Australian companies use RedCoal SMS texting services to send SMS texts to mobile phones from computers. RedCoal supplies an API for its MIDA technology with VB and C++ examples but no Delphi code. I have created a Delphi demo &hellip; <a href=\"https:\/\/www.desiderata.com.au\/blog\/?p=269\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[11,10],"class_list":["post-269","post","type-post","status-publish","format-standard","hentry","category-delphi","tag-mobile-phones","tag-sms-text"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.desiderata.com.au\/blog\/index.php?rest_route=\/wp\/v2\/posts\/269","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.desiderata.com.au\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.desiderata.com.au\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.desiderata.com.au\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.desiderata.com.au\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=269"}],"version-history":[{"count":3,"href":"https:\/\/www.desiderata.com.au\/blog\/index.php?rest_route=\/wp\/v2\/posts\/269\/revisions"}],"predecessor-version":[{"id":271,"href":"https:\/\/www.desiderata.com.au\/blog\/index.php?rest_route=\/wp\/v2\/posts\/269\/revisions\/271"}],"wp:attachment":[{"href":"https:\/\/www.desiderata.com.au\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=269"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.desiderata.com.au\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=269"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.desiderata.com.au\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=269"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}