An MTA works by receiving outgoing emails from a Mail User Agent (MUA) or another MTA. It then determines the recipient's mail server using the Domain Name System (DNS) and transfers the email to the appropriate server. The MTA uses the Simple Mail Transfer Protocol (SMTP) to facilitate this process.