![]() |
Processing items in the outbox
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. |
Processing items in the outbox
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 - "Richard" wrote in message ... 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. |
Processing items in the outbox
Either handle the Send event for the item or the Application.ItemSend event,
never mess with items that have been submitted for transmission. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "Richard" wrote in message ... 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. |
Processing items in the outbox
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? "Dmitry Streblechenko" wrote: 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 - "Richard" wrote in message ... 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. |
Processing items in the outbox
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 - "Richard" wrote in message ... 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? "Dmitry Streblechenko" wrote: 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 - "Richard" wrote in message ... 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. |
All times are GMT +1. The time now is 12:29 PM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com