PhpRiot
Follow phpriot on Twitter
Sponsored Link
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store
Free iPad/iPhone App
Available on the App Store

  • PHP manual
  • Zend Framework manual
  • Smarty manual
  • PHP articles
  • PHP training

Send SMS

The Send SMS service is used to send normal and Flash SMS to any number.

The following restrictions apply to the use of the SMS service:

  • An SMS or Flash SMS in the production environment must not be longer than 765 characters and must not be sent to more than 10 recipients.

  • An SMS or Flash SMS in the sandbox environment is shortened and enhanced by a note from the DeveloperGarden. The maximum length of the message is 160 characters.

  • In the sandbox environment, a maximum of 10 SMS can be sent per day.

  • The following characters are counted twice: | ^ € { } [ ] ~ \ LF (line break)

  • If a SMS or Flash SMS is longer than 160 characters, one message is charged for each 153 characters (quota and credit).

  • Delivery cannot be guaranteed for SMS or Flash SMS to landline numbers.

  • The sender can be a maximum of 11 characters. Permitted characters are letters and numbers.

  • The specification of a phone number as the sender is only permitted if the phone number has been validated. (See: SMS Validation)

Example 787. Sending an SMS

<?php
$service 
= new Zend_Service_DeveloperGarden_SendSms($config);
$sms $service->createSms(
    
'+49-172-123456; +49-177-789012',
    
'your test message',
    
'yourname'
);
print_r($service->send($sms));

Zend Framework