+2, your device does NOT do this through the data connection, so even though you might have mobile data turned off, or in this case, connected to wifi. It's using the Short message service center to communicate the data, this is over the voice network effectively, NOT DATA.
XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a developer?