To me the code you presented will send an email to the specified email address.. the recipient then can access it in his phone, if it has wifi service activated.
It's hard to imagine that one can bypass the phone service provider network. there are communication protocols (under the hood), message formats, phone
validation, billing.. etc. The only thing I can imagine is IP calling which is not a true SMS.. OR you use web service that contract with cellphone providers.