E-mail uses a client-server model with three main components - the user agent (UA), the message transfer agent (SMTP), and the message access agent (POP3/IMAP). A basic e-mail message involves the UA composing a message on the client, the MTA transferring it to the server using SMTP protocols, and the MAA retrieving it from the server to the recipient's UA using POP3 or IMAP protocols. MIME extensions allow non-text data like images and files to be sent as attachments by encoding them into ASCII format during transfer.