Envoyer par SMS: Optimal control theory with aerospace applications