Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 1000 Bytes

README.md

File metadata and controls

17 lines (14 loc) · 1000 Bytes

smsphp

Simple PHP script which sends sms through gammu.

gammu is configured to use an ZTE MF112 3G USB modem to send text messages.

Requirements:

  • run gammu-config (a working config is in this repo)
  • copy ~/.gammurc to your webserver/www-data homedir (cp .gammurc /var/www/)
  • add your webserver/www-data to dialout group. (ie dialout:x:20:www-data)
  • create an sms.log file and allow your webserver/www-data to write to this file (touch /var/www/html/sms.log && chown www-data /var/www/html/sms.log)
  • ZTE MF112 needs to be usb_modeswitch'ed after every reboot. Add "usb_modeswitch -c /usr/share/usb_modeswitch/19d2:0103 -v 19d2 -p 0103" to your /etc/rc.local (replace vendor/product codes if they differ)

Usage