Mapi - reading from Sent Items (OpenInsight 32-bit Specific)
At 21 JAN 2004 12:16:07AM Mark B wrote:
I know there is an abundance of threads that refer to mapi functions and OI but I am yet to find one that answers what I need.
I have been able to send emails, send emails with attachments, read emails, and delete emails. Everything good so far.
My stumbling block is being able to control where I read emails from.
What I want to do is simple in concept. Send an email, then delete it.
As I mentioned earlier, I can successfully send emails with the required attachment. I don't however want the emails lingering in my (or the clients) sent items folder.
The code below
MAPIOpenMail(session, @Window,
,
, ids)successfully returns the ids of the emails in my inbox.
I believe I need to do this in order to use MAPIDeleteMail.
The problem is I need the ids of the emails in my sent items folder, not the inbox.
What do I need to do to use MAPIOpenMail on the sent items folder, or is there another simpler way to delete an email you have just sent.
TIA
Mark B
At 21 JAN 2004 12:50AM Donald Bakke wrote:
Mark,
If I had an answer that relates to MAPI I would offer it. However, I might have an alternative option for you with this but I need you to email me directly as it relates to a commerical product.
dbakke@srpcs.com
At 21 JAN 2004 04:21AM Tim Marler wrote:
Mark,
From memory I don't think you can. I believe the MAPI stuff in OI is Simple MAPI and only supports reading emails from the 'Inbox'.
Sorry
![]()
Tim
PS If you do find a way, please let me know through these boards…