What you are talking about is called “store and forward” [1]
1. https://en.wikipedia.org/wiki/Store_and_forward