The Internet Mail Access Protocol (IMAP) is a application layer-level communication protocol for retrieving emails from a mail server. It provides user agents the ability to retrieve, delete, and store in folders messages on the mail server.
IMAP is used only to retrieve messages (it is a “pull protocol”), along with HTTP in the case of web-based mail clients. To send messages to the mail server from the user agent, SMTP or HTTP are used.