I am thinking of creating a mail client as a side project and wanted a brief overview of how they work. A few issues I was thinking of are:
How do they connect to SMTP servers (My guess is by using built in libraries)?
Where are mails stored?
How are passwords encrypted?
How do they check if computer is connected to internet?