Apple will route your iMessage via their servers utilising an Internet connection whenever you send one using the iMessage app. This Internet connection may be made by either Wi-Fi or the data network provided by your cellphone operator. In the event that there is no Internet connection available, the Messages app will make an effort to transmit the iMessage in the form of a standard SMS text message.