...and what happens when you send the output of your code to SMS? What errors do you see?