How to send/receive SMS with gammu

Script for sending a message from a file:


# $1 = telephone number

# $2 = text file
gammu sendsms text $1 -report < $2


Command line for sending a message:

$ echo “message to send” | gammu sendsms text <phone number> -report


With gammu smsd, by using the RunOnReceive directives, it is possible to send the received SMS to email.

Command line for sending email:

$ mail -s “subject email” <email address> < text_file

here more info:


3 thoughts on “How to send/receive SMS with gammu

  1. Pingback: 菜谱:基于Raspberry Pi的短信网关设计 | 咕噜
  2. Pingback: 菜谱:基于Raspberry Pi的短信网关设计 | 天天三国杀
  3. Pingback: 基于Raspberry Pi的短信网关设计 - 贝克街的捉虫师

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s