Question: why is my iphone not sending messages on wifi?
Answer: Connect to the internet using WiFi or Data. Go to Settings > Messages and toggle iMessage OFF. Turn your iPhone off completely, then turn it back on. Go back into Settings > Messages and toggle iMessage ON.