If you are working on windows:
1. Install the telnet client via the command prompt by typing
pkgmgr /iu:"TelnetClient"
2. Type telnet localhost 5554 . Here 5554 is the number that appears in the title of the emulator.
- Type sms send 1234 "message"
You are done ! Cheers ! Check your emulator for the received message