IMAP connects your webmail to the server for receiving the emails coming to your account and the SMTP connects your webmail to the server that helps you to send the emails to other users.