Made 'sendMail' an application.
- added a main function and added command line access