https://github.com/nodef/way2sms.cmd
Send SMS through Way2SMS in Windows Console.
https://github.com/nodef/way2sms.cmd
console merferry program send sms way2sms windows
Last synced: 3 months ago
JSON representation
Send SMS through Way2SMS in Windows Console.
- Host: GitHub
- URL: https://github.com/nodef/way2sms.cmd
- Owner: nodef
- License: mit
- Created: 2017-10-16T18:45:12.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2025-04-10T19:59:28.000Z (9 months ago)
- Last Synced: 2025-07-23T02:50:30.826Z (5 months ago)
- Topics: console, merferry, program, send, sms, way2sms, windows
- Language: C#
- Homepage: https://cmdf.github.io/way2sms/
- Size: 16.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Send SMS through [Way2SMS] in Windows Console.
> 1. Download [exe file](https://github.com/cmdf/way2sms/releases/download/1.0.0/way2sms.exe).
> 2. Copy to `C:\Program_Files\Scripts`.
> 3. Add `C:\Program_Files\Scripts` to `PATH` environment variable.
> 4. Register an account in [Way2SMS].
> 5. Send SMS from *argument*, *file (redirect)*, or *command output (pipe)*.
```batch
> way2sms []
:: commands:
:: - get [-u|-p] [-0]
:: - set [-u |-p ] [-i ] [-0]
:: - send [-u ] [-p ] [-t ] [-i ] [-0]
::
:: flags:
:: -u|--username []
:: -p|--password []
:: -i|--input
:: -0
```
### get
**Get** configuration values of `username` and/or `password`. If a configuration has
been set, all commands post it will use it unless it is already they are already
specified as environment variables, or as arguments.
```batch
:: get all configuration values
> way2sms get
:: get username configuration value
> way2sms get -u
:: get configuration to file
> way2sms get >
> way2sms get > config.ini
:: get configuration with mr. interactive
> way2sms get -0
GET CONFIGURATION
Username: 9876543210
Password: incorrect
```
### set
**Set** configuration values of `username` and/or `password`. Once configuration has
been set, all commands post it will use it unless it is already they are already
specified as environment variables, or as arguments.
```batch
:: set all configuration values
> way2sms set -u -p
> way2sms set -u 9876543210 -p incorrect
:: set password configuration value
> way2sms set -p
> way2sms set -p incorrect
:: set configuration from file
> echo username=>
> echo username=9876543210> config.ini
> echo password=>>
> echo password=incorrect>> config.ini
> way2sms set <
> way2sms set < config.ini
:: set configuration with mr. interactive
> way2sms set -0
SET CONFIGURATION
Username:
Username: 9876543210
Password:
Password: incorrect
```
### send
**Login** to Way2SMS using given `username` and `password`, and **send** SMS message
`to` specified mobile number, as specified in `input`. `username` and `password`
are special options and can be specified as *arguments*, *environment variables*, or
*configuration* set using `set` command.
```batch
:: send sms using arguments
> way2sms send -u -p -t -i
> way2sms send -u 9876543210 -p incorrect -t 8765432109 -i "Short Message Service!"
:: send sms using environment variables
> set OWAY2SMS_USERNAME=
> set OWAY2SMS_USERNAME=9876543210
> set OWAY2SMS_PASSWORD=
> set OWAY2SMS_PASSWORD=incorrect
> way2sms send -t -i
> way2sms send -t 8765432109 -i "Short Message Service!"
:: send sms using configuration
> way2sms set -u -p
> way2sms set -u 9876543210 -p incorrect
> way2sms send -t -i
> way2sms send -t 8765432109 -i "Short Message Service!"
:: send sms with input from file text
> ping >
> ping www.google.co.in > ping-www.google.co.in.log
> way2sms send -u -p -t <
> way2sms send -u 9876543210 -p incorrect -t 8765432109 < ping-www.google.co.in.log
:: send sms with input from command output
> ping | way2sms send -u -p -t
> ping www.google.co.in | way2sms send -u 9876543210 -p incorrect -t 8765432109
:: send sms with mr. interactive
> way2sms send -0
SEND SMS
Username:
Username: 9876543210
Password:
Password: incorrect
To:
To: 8765432109
Message:
Message:
See no evil.
Hear no evil.
Speak no evil.
^Z
```
[](https://cmdf.github.io)
> References: [Way2SMS.com, a Way2Online venture][Way2SMS], [Kingster's Way2SMS unofficial PHP API][Way2SMS-API].

[Way2SMS]: http://site24.way2sms.com/content/index.html
[Way2SMS-API]: https://github.com/kingster/Way2SMS-API