How to automatically resend iMessage when Internet is accessible?
Unfortunately this feature does not exist on the iPhone.

You can provide feedback for the feature to be added here. For now, you will just have to live with it or use another app like WhatsApp.


  There is no such feature as yet on iPhone.


(Source)