6 .. program:: gammu-smsd-inject
13 gammu-smsd-inject [OPTION]... MESSAGETYPE RECIPIENT [MESSAGE_PARAMETER]...
18 This manual page documents briefly the :program:`gammu-smsd-inject` command.
20 :program:`gammu-smsd-inject` is a program that enqueues message in Gammu SMS
21 Daemon, which will be later sent by the daemon using connected GSM modem.
23 Support for this program depends on features available in currently used SMSD
24 service backend, however currently it is supported by all of them.
26 Program accepts following options (please note that long options might be not
27 accepted on some platforms):
29 .. option:: -h, --help
33 .. option:: -v, --version
35 Shows version information and compiled in features.
37 .. option:: -c, --config=file
39 Configuration file to use, default is /etc/gammu-smsdrc, on Windows there
40 is no default and configuration file path has to be always specified.
42 .. option:: -l, --use-log
44 Use logging as configured in config file.
46 .. option:: -L, --no-use-log
48 Do not use logging as configured in config file (default).
50 For description of message types and their parameters, please check documentation
51 for :option:`gammu savesms`.
56 To check it out, you need to have configuration file for SMSD, see
57 :ref:`gammu-smsdrc` for more details about it.
59 Inject text message up to standard 160 chars:
63 echo "All your base are belong to us" | gammu-smsd-inject TEXT 123456
69 gammu-smsd-inject TEXT 123456 -text "All your base are belong to us"
71 Inject long text message:
75 echo "All your base are belong to us" | gammu-smsd-inject TEXT 123456 -len 400
81 gammu-smsd-inject TEXT 123456 -len 400 -text "All your base are belong to us"
87 gammu-smsd-inject EMS 123456 -text "All your base are belong to us"
89 Inject some funky message with predefined sound and animation from 2 bitmaps:
93 gammu-smsd-inject EMS 123456 -text "Greetings" -defsound 1 -text "from Gammu" -tone10 axelf.txt -animation 2 file1.bmp file2.bmp
95 Inject protected message with ringtone:
99 gammu-smsd-inject EMS 123456 -protected 2 -variablebitmaplong ala.bmp -toneSElong axelf.txt -toneSE ring.txt