Envoyer par SMS: Optimal resource allocation