Presentation of the message management and building. The code follow.