I need to write a mail client in PHP. It must contain two tabs, "Inbox" and "Sent". I understand how to implement the "Sent" functionality through the mail() function.
Correctly, I realized that it would be necessary to keep copies of letters in the database, and then output them?
But how to implement the Inbox functionality? I do not quite understand. Need your help.