implemented SMS message sending functions

and the SMS receiver calls the correct function in Main based on the
receipt