I'm assuming this is not for Telnyx, since that is fully tested? I'm not sure how much I can help, but here goes:
It sound like you have something not quite right in file sms_email.php, in the "if ($carrier == "<your_carrier_name>") block.
I would look closely at the way you are setting the...