{"id":394,"date":"2016-05-08T11:21:43","date_gmt":"2016-05-08T11:21:43","guid":{"rendered":"http:\/\/developer.suresms.com\/?page_id=394"},"modified":"2017-02-25T18:22:56","modified_gmt":"2017-02-25T18:22:56","slug":"sample-code-email2sms-php","status":"publish","type":"page","link":"https:\/\/developer.suresms.com\/sample-code-email2sms-php\/","title":{"rendered":"Sample code &#8211; Email2SMS &#8211; PHP"},"content":{"rendered":"<h1>Sample code \u2013 E-mail2SMS &#8211; PHP<\/h1>\n<p>The following Sample code shows, how to send make an integration in PHP with HTTPs:<\/p>\n<pre>&lt;?php\n$to\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0=\u00a0\u2018[tophonenumber].[login].[password]@mail.suresms.com';\n$message\u00a0=\u00a0\u2018hello';\nmail($to, \u201csubject\u201d,$message);\n?&gt;\nIgen skal du \u00e6ndre\n<em>tophonenumber:<\/em> Here you enter the recipients phonenumber.\n<em>login<\/em> : Your SureSMS user login\n<em>password<\/em> : your password for SureSMS.com\n<\/pre>\n<p><strong>It is nessasary to change the parametres, so that they do match the username and Password, you recieved when opening your SureSMS account!<\/strong><\/p>\n<p>Be aware, that some hosting compagnies don&#8217;t allow you to send an E-mail without sender-ID, or they only allow e.g 20 E-mail a day with out sender-ID.<\/p>\n<p>Should you have any questions, you are allways welcome to send an E-mail to <a href=\"mailto:support@suresms.com\">support@suresms.com<\/a>. We are looking forward to helping you.<\/p>\n<h3>Need an account?<\/h3>\n<p>Do you still need an account or a free test account? Follow this link and we will make you one in 5 minuts.<\/p>\n<p>\t\t\t<a href=\"https:\/\/www.suresms.com\/dk\/sms-gateway-priser\/\" target=\"_self\" role=\"button\"><br \/>\n\t\t\t\t\t\t\tOpen SureSMS account<br \/>\n\t\t\t\t\t<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sample code \u2013 E-mail2SMS &#8211; PHP The following Sample code shows, how to send make an integration in PHP with HTTPs: &lt;?php $to\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0=\u00a0\u2018[tophonenumber].[login].[password]@mail.suresms.com&#8217;; $message\u00a0=\u00a0\u2018hello&#8217;; mail($to, \u201csubject\u201d,$message); ?&gt; Igen skal du \u00e6ndre tophonenumber: Here you enter the recipients phonenumber. login : Your SureSMS user login password : your password for SureSMS.com It is nessasary to change&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-394","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/developer.suresms.com\/wp-json\/wp\/v2\/pages\/394","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.suresms.com\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/developer.suresms.com\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/developer.suresms.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.suresms.com\/wp-json\/wp\/v2\/comments?post=394"}],"version-history":[{"count":6,"href":"https:\/\/developer.suresms.com\/wp-json\/wp\/v2\/pages\/394\/revisions"}],"predecessor-version":[{"id":709,"href":"https:\/\/developer.suresms.com\/wp-json\/wp\/v2\/pages\/394\/revisions\/709"}],"wp:attachment":[{"href":"https:\/\/developer.suresms.com\/wp-json\/wp\/v2\/media?parent=394"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}