4.5 Attach Text File

The client first creates the Attachment object on the Message object and then sets its properties and commits the changes.