Skip to content

Instantly share code, notes, and snippets.

@vyper
Created May 2, 2011 18:25
Show Gist options
  • Save vyper/952090 to your computer and use it in GitHub Desktop.
Save vyper/952090 to your computer and use it in GitHub Desktop.
SendSMS with Gammu and Python
import gammu
sm = gammu.StateMachine()
sm.ReadConfig()
sm.Init()
message = {
'Number': '1234',
'SMSC': {'Number': '+554199138200'},
'Text': 'Hello world!',
'Class': 1,
}
sm.SendSMS(message)
@craftpip
Copy link

How do you tell it which port to use from the config section?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment