Thanks Carl, I know how it works.
But I didn't add anything to my code other than what I posted above.
And as far as working with the carrier, it's a myth that you need a program or connector to send emails to cell phones through their
SMS@mobile.com address. There are other reason to have a connector, but it is not required in this instance.
Instead of putting the SMS text message email address in the $smsmail field, try using an alternative email address.
One of the problems I ran into was that my X-cart configuration did not send out emails for processed notifications. Initial Order Notification was the way mine was configured.
Mike