Processing items in the outbox

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.
 
D

Dmitry Streblechenko

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
-
 
K

Ken Slovak - [MVP - Outlook]

Either handle the Send event for the item or the Application.ItemSend event,
never mess with items that have been submitted for transmission.
 
R

Richard

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?
 
D

Dmitry Streblechenko

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
-
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top