Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Gammu modules comes with gammu_sendsms() function to send SMS.
Syntax: gammu_sendsms($gammu_destinationnumber, $gammu_textdecoded, $SendingDateTime = NULL)
Examples:
- Send simple SMS
gammu_sendsms('082111978168', "Hello word"); - Send simple SMS at specific date time
gammu_sendsms('082111978168', "Hello word", '2012-10-25 12:00:00'); - Send simple SMS with line break
gammu_sendsms('082111978168', "Hello\nword");