E-mail works by using SMTP servers to send messages and POP3 or IMAP servers to receive messages. When a user composes an email using their mail client, the SMTP server handles passing the message to the recipient's mail server which then delivers it to their POP3/IMAP mailbox for retrieval. POP3 downloads emails to the local machine while IMAP stores them on the server, allowing access from different devices.