I need to read sent items from an email account to insert the details into a database as part of development of a support ticket system.
I have managed to implement reading inbox emails using the below code and successfully inserted those into the database.
$stream = @imap_open($current_mailbox['mailbox'], $current_mailbox['username'], $current_mailbox['password']);
$overview = imap_fetch_overview($stream,$email_id,0);
$message = imap_fetchbody($stream,$email_id, 1.2);
I have searched all over the internet and stackoverflow to find a solution, but no use. I haven't found even a single discussion regarding this (Reading sent items from an email account).
Hope someone here can help me in this issue by sharing some useful code snippets or URLs for reference.
Thanks in advance.