Skip to content

Instantly share code, notes, and snippets.

@abrahamfast
Last active February 3, 2016 10:23
Show Gist options
  • Save abrahamfast/ede0911b5b6c4f5e0441 to your computer and use it in GitHub Desktop.
Save abrahamfast/ede0911b5b6c4f5e0441 to your computer and use it in GitHub Desktop.
smsati Send Sms
<?php
$client = new SoapClient('http://mehrafraz.com/webservice/Service.asmx?wsdl');
$client->SendSms([
"cUserName" => "secret",
"cPassword" => "secret",
"cBody" => "Hello Cytco :) ",
"cSmsnumber" => "09305476531",
"cGetid" => 0,
"nCMessage" => 1,
"nTypeSent" => 1,
"m_SchedulDate" => null,
"cDomainname" => "itu",
"cFormNumber" => null,
"nSpeedsms" => 0,
"nPeriodmin" => 0,
"cstarttime" => null,
"cEndTime" => null
]);
file_put_contents('/var/www/vtigerme/log',print_r(
htmlspecialchars($client->__getLastRequest())
.htmlspecialchars($client->__getLastResponse())
), true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment