1. A method comprising: receiving an electronic message at a first wireless device in an ad-hoc network of wireless devices, the electronic message being intended for a second wireless device in the ad-hoc network of wireless devices; determining, by one or more processors, when the second wireless device is within a specified network proximity of the first wireless device, wherein the specified network proximity is a specified number of hops from the first wireless device; when the second wireless device is within the specified network proximity of the first wireless device, sending the electronic message to the second wireless device via the ad-hoc network; and when the second wireless device is not within the specified network proximity of the first wireless device, sending, from the first device, the electronic message to a message server to send the electronic message to the second wireless device.