You can also file complaint to Indian railways regarding its service or bad behaviour of any railway employee via SMS also. The Railway Number to which you can SMS is 8121281212. All you need to do is mention the train number and bogie number and the type of complaint e.g: A/C not working / Toilet no water etc .
The problem will be redressed within 90 minutes at any cost, said a Railways Board member.
Not only that, you can send SMS for emergency services also like medical facilities, fire or any such.
You'll soon get complaint id number via SMS. To check the status of the complaint, SMS STATUS <SPACE> <id> to 8121281212.