Send SMS messages using Almas WebService.
Almas Webservice, a service for sending short messages via the web. This is only available for Internet users in Iran. A large number of SMS value-added service providers use this system, so this component can help many users to send SMS messages.
The use of this component is required to have a username and password, you can send SMS messages.
It is explained that the web service is Magfa product.
Address one of the Web services model as follows:
requirements of using this extension (e.g. Yii 1.1 or above)...
- Extract the release file under protected/extensions
- After place this code within your configuration file (main.php) inside the 'components' section
'sms' => array( 'class' => 'ext.RezvanSMS.RezvanSMS', 'login' => 'user to login', // User to web login 'password' => 'password to login', // password to web login 'testMode' => true // If you gonna only test ),
See the following code example:
Yii::app()->sms->SendSms( array( '+34600000000', '+01555000000' ), 'Hello!' );