irvatoDev
4/14/2015 - 12:38 PM

smsati Send Sms

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);