Invia SMS: Optimal control theory