If you have an intermittent WiFi connection, it may be better to stick with SMS instead of iMessage. iMessage requires an active data connection, and if your WiFi connection is unreliable, your messages may be sent as SMS instead.