A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Processing items in the outbox



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 19th 08, 09:30 PM posted to microsoft.public.outlook.program_addins
Richard
external usenet poster
 
Posts: 114
Default 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.
  #2  
Old May 19th 08, 09:57 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default 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.



  #3  
Old May 19th 08, 10:58 PM posted to microsoft.public.outlook.program_addins
Richard
external usenet poster
 
Posts: 114
Default 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.




  #4  
Old May 20th 08, 12:20 AM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default 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.






  #5  
Old May 19th 08, 10:07 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default 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.


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Items not moing from Outbox to Sent meow9th Outlook and VBA 1 January 28th 08 07:17 AM
Bypassing Outlook's Outbox (or creating a custom outbox) Ekin Outlook and VBA 12 January 21st 08 02:52 PM
2 issues with outlook (language of folders and items remain in outbox) Freaky Outlook - General Queries 1 July 30th 07 01:27 PM
Select all items in outbox Joel Outlook and VBA 1 November 27th 06 06:09 AM
Inbox, Sent Items & Outbox in Deleted Items in Outlook 2003 & OWA with Exchange splounx Outlook - General Queries 1 February 17th 06 02:22 AM


All times are GMT +1. The time now is 12:31 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-2025 Outlook Banter.
The comments are property of their posters.