Processing items in the outbox

  • Thread starter Thread starter Richard
  • Start date Start date
R

Richard

I am new to outlook add-in programming and have found that if I access items
in the outbox, they are corrupted in some way that then prevents them being
sent by outlook. It appears that the sentto date is not set to a valid date.
This happens just be trapping the new item event on the outbox and tracing
some date from the mail item.
 
Every time you touch an item being submitted using the Outlook Object Model,
the submission is canceled.
--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
 
Either handle the Send event for the item or the Application.ItemSend event,
never mess with items that have been submitted for transmission.
 
Dmitry,
This is interesing news. Sergey did not give me that information. Can the
submission be reinstated, so I can process in the outbox new item event and
then have the item sent?
 
Sure, cal MailItem.Send again.
But it is better, just as Ken suggested, to use Application.ItemSend event.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
 
Back
Top