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

Sending MailItems from Outbox part 2



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 14th 06, 02:35 PM posted to microsoft.public.outlook.program_addins
Tom at GSD
external usenet poster
 
Posts: 84
Default Sending MailItems from Outbox part 2

Hi,

Summary - I am having an issue where Outlook 2003 will not send or will send
duplicate emails when programmatically sending emails that are in the outbox.

My add-in will move several personalized Mail Items to the Outbox (could be
up to 500). The idea is that the addin will send all of these messages out. I
have created an event driven process that will send one email at a time from
the Outbox. We have to do this because if we have a loop and send all
messages at one time several messages are dropped because Outlook and
antivirus software cannot handle the rate at which we are sending the emails.
So what I am doing is sending one mail item, setting an event so that we give
Outlook time to process the send and then sending another mailitem. I repeat
this process until all of the messages have been processed. The problem is
that some of the messages are sent twice and some are lost after the send
method is invoked and in some cases the messages are stuck in the Outbox
after send. Is there a way to insure that the sending of the mailitem is
fully processed before another mailitem is sent? Is there any other way to
check to see if the email is fully processed? I have tried keeping track of
the entry ID's but something is not correct with the entry id's and I am not
sure what the issue is - it almost seems that the ID's are not unique. Any
suggestions would be greatly appreciated. Thank you.

  #2  
Old September 14th 06, 03:14 PM posted to microsoft.public.outlook.program_addins
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Sending MailItems from Outbox part 2

Is there a way to insure that the sending of the mailitem is
fully processed before another mailitem is sent?


What about waiting for the ItemAdd event to fire on the Sent Items folder's Items collection?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Tom at GSD" wrote in message ...
Hi,

Summary - I am having an issue where Outlook 2003 will not send or will send
duplicate emails when programmatically sending emails that are in the outbox.

My add-in will move several personalized Mail Items to the Outbox (could be
up to 500). The idea is that the addin will send all of these messages out. I
have created an event driven process that will send one email at a time from
the Outbox. We have to do this because if we have a loop and send all
messages at one time several messages are dropped because Outlook and
antivirus software cannot handle the rate at which we are sending the emails.
So what I am doing is sending one mail item, setting an event so that we give
Outlook time to process the send and then sending another mailitem. I repeat
this process until all of the messages have been processed. The problem is
that some of the messages are sent twice and some are lost after the send
method is invoked and in some cases the messages are stuck in the Outbox
after send. Is there a way to insure that the sending of the mailitem is
fully processed before another mailitem is sent? Is there any other way to
check to see if the email is fully processed? I have tried keeping track of
the entry ID's but something is not correct with the entry id's and I am not
sure what the issue is - it almost seems that the ID's are not unique. Any
suggestions would be greatly appreciated. Thank you.

  #3  
Old September 14th 06, 03:28 PM posted to microsoft.public.outlook.program_addins
Tom at GSD
external usenet poster
 
Posts: 84
Default Sending MailItems from Outbox part 2

Thanks for your reply.

I thought about that, but I am curious if the item is completely sent when
this event is fired? It seems as though we are dealing with some sort of
latent timing issue. Is this event sent when the item has completely been
processed? Also how does the entry ID compare from the Outbox to the Sent
items? Is seems as though there are some differences that I have noted.


"Sue Mosher [MVP-Outlook]" wrote:

Is there a way to insure that the sending of the mailitem is
fully processed before another mailitem is sent?


What about waiting for the ItemAdd event to fire on the Sent Items folder's Items collection?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Tom at GSD" wrote in message ...
Hi,

Summary - I am having an issue where Outlook 2003 will not send or will send
duplicate emails when programmatically sending emails that are in the outbox.

My add-in will move several personalized Mail Items to the Outbox (could be
up to 500). The idea is that the addin will send all of these messages out. I
have created an event driven process that will send one email at a time from
the Outbox. We have to do this because if we have a loop and send all
messages at one time several messages are dropped because Outlook and
antivirus software cannot handle the rate at which we are sending the emails.
So what I am doing is sending one mail item, setting an event so that we give
Outlook time to process the send and then sending another mailitem. I repeat
this process until all of the messages have been processed. The problem is
that some of the messages are sent twice and some are lost after the send
method is invoked and in some cases the messages are stuck in the Outbox
after send. Is there a way to insure that the sending of the mailitem is
fully processed before another mailitem is sent? Is there any other way to
check to see if the email is fully processed? I have tried keeping track of
the entry ID's but something is not correct with the entry id's and I am not
sure what the issue is - it almost seems that the ID's are not unique. Any
suggestions would be greatly appreciated. Thank you.


  #4  
Old September 14th 06, 03:33 PM posted to microsoft.public.outlook.program_addins
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Sending MailItems from Outbox part 2

Correct. The item should not hit the Sent Items folder until the process of delivering the item to the mail server has completed.

There is no corrrelation between the EntryID of an item in the Outbox and the EntryID of the corresponding item in the Sent Items folder.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Tom at GSD" wrote in message ...
Thanks for your reply.

I thought about that, but I am curious if the item is completely sent when
this event is fired? It seems as though we are dealing with some sort of
latent timing issue. Is this event sent when the item has completely been
processed? Also how does the entry ID compare from the Outbox to the Sent
items? Is seems as though there are some differences that I have noted.


"Sue Mosher [MVP-Outlook]" wrote:

Is there a way to insure that the sending of the mailitem is
fully processed before another mailitem is sent?


What about waiting for the ItemAdd event to fire on the Sent Items folder's Items collection?

"Tom at GSD" wrote in message ...
Hi,

Summary - I am having an issue where Outlook 2003 will not send or will send
duplicate emails when programmatically sending emails that are in the outbox.

My add-in will move several personalized Mail Items to the Outbox (could be
up to 500). The idea is that the addin will send all of these messages out. I
have created an event driven process that will send one email at a time from
the Outbox. We have to do this because if we have a loop and send all
messages at one time several messages are dropped because Outlook and
antivirus software cannot handle the rate at which we are sending the emails.
So what I am doing is sending one mail item, setting an event so that we give
Outlook time to process the send and then sending another mailitem. I repeat
this process until all of the messages have been processed. The problem is
that some of the messages are sent twice and some are lost after the send
method is invoked and in some cases the messages are stuck in the Outbox
after send. Is there a way to insure that the sending of the mailitem is
fully processed before another mailitem is sent? Is there any other way to
check to see if the email is fully processed? I have tried keeping track of
the entry ID's but something is not correct with the entry id's and I am not
sure what the issue is - it almost seems that the ID's are not unique. Any
suggestions would be greatly appreciated. Thank you.


  #5  
Old September 14th 06, 03:46 PM posted to microsoft.public.outlook.program_addins
Tom at GSD
external usenet poster
 
Posts: 84
Default Sending MailItems from Outbox part 2

Thank you.

So there is not anyway to compare emails from folder to folder. I guess I
could hide a specific HTML element with a GUID to make sure that each message
has been sent.

Thanks again for your time.

"Sue Mosher [MVP-Outlook]" wrote:

Correct. The item should not hit the Sent Items folder until the process of delivering the item to the mail server has completed.

There is no corrrelation between the EntryID of an item in the Outbox and the EntryID of the corresponding item in the Sent Items folder.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Tom at GSD" wrote in message ...
Thanks for your reply.

I thought about that, but I am curious if the item is completely sent when
this event is fired? It seems as though we are dealing with some sort of
latent timing issue. Is this event sent when the item has completely been
processed? Also how does the entry ID compare from the Outbox to the Sent
items? Is seems as though there are some differences that I have noted.


"Sue Mosher [MVP-Outlook]" wrote:

Is there a way to insure that the sending of the mailitem is
fully processed before another mailitem is sent?

What about waiting for the ItemAdd event to fire on the Sent Items folder's Items collection?

"Tom at GSD" wrote in message ...
Hi,

Summary - I am having an issue where Outlook 2003 will not send or will send
duplicate emails when programmatically sending emails that are in the outbox.

My add-in will move several personalized Mail Items to the Outbox (could be
up to 500). The idea is that the addin will send all of these messages out. I
have created an event driven process that will send one email at a time from
the Outbox. We have to do this because if we have a loop and send all
messages at one time several messages are dropped because Outlook and
antivirus software cannot handle the rate at which we are sending the emails.
So what I am doing is sending one mail item, setting an event so that we give
Outlook time to process the send and then sending another mailitem. I repeat
this process until all of the messages have been processed. The problem is
that some of the messages are sent twice and some are lost after the send
method is invoked and in some cases the messages are stuck in the Outbox
after send. Is there a way to insure that the sending of the mailitem is
fully processed before another mailitem is sent? Is there any other way to
check to see if the email is fully processed? I have tried keeping track of
the entry ID's but something is not correct with the entry id's and I am not
sure what the issue is - it almost seems that the ID's are not unique. Any
suggestions would be greatly appreciated. Thank you.



  #6  
Old September 14th 06, 04:53 PM posted to microsoft.public.outlook.program_addins
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Sending MailItems from Outbox part 2

Or fill the built-in BillingInformation property with a GUID value.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Tom at GSD" wrote in message ...
Thank you.

So there is not anyway to compare emails from folder to folder. I guess I
could hide a specific HTML element with a GUID to make sure that each message
has been sent.

Thanks again for your time.

"Sue Mosher [MVP-Outlook]" wrote:

Correct. The item should not hit the Sent Items folder until the process of delivering the item to the mail server has completed.

There is no corrrelation between the EntryID of an item in the Outbox and the EntryID of the corresponding item in the Sent Items folder.



"Tom at GSD" wrote in message ...
Thanks for your reply.

I thought about that, but I am curious if the item is completely sent when
this event is fired? It seems as though we are dealing with some sort of
latent timing issue. Is this event sent when the item has completely been
processed? Also how does the entry ID compare from the Outbox to the Sent
items? Is seems as though there are some differences that I have noted.


"Sue Mosher [MVP-Outlook]" wrote:

Is there a way to insure that the sending of the mailitem is
fully processed before another mailitem is sent?

What about waiting for the ItemAdd event to fire on the Sent Items folder's Items collection?

"Tom at GSD" wrote in message ...
Hi,

Summary - I am having an issue where Outlook 2003 will not send or will send
duplicate emails when programmatically sending emails that are in the outbox.

My add-in will move several personalized Mail Items to the Outbox (could be
up to 500). The idea is that the addin will send all of these messages out. I
have created an event driven process that will send one email at a time from
the Outbox. We have to do this because if we have a loop and send all
messages at one time several messages are dropped because Outlook and
antivirus software cannot handle the rate at which we are sending the emails.
So what I am doing is sending one mail item, setting an event so that we give
Outlook time to process the send and then sending another mailitem. I repeat
this process until all of the messages have been processed. The problem is
that some of the messages are sent twice and some are lost after the send
method is invoked and in some cases the messages are stuck in the Outbox
after send. Is there a way to insure that the sending of the mailitem is
fully processed before another mailitem is sent? Is there any other way to
check to see if the email is fully processed? I have tried keeping track of
the entry ID's but something is not correct with the entry id's and I am not
sure what the issue is - it almost seems that the ID's are not unique. Any
suggestions would be greatly appreciated. Thank you.



 




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
Sending MailItems from Outbox withour dropping emails Tom at GSD Add-ins for Outlook 0 September 12th 06 07:01 PM
emails hang in the outbox after sending jody frazier Outlook - Installation 1 July 31st 06 01:56 AM
outlook 2003 outbox will not empty after sending 2 Bill_De Outlook - General Queries 0 June 15th 06 10:01 PM
Viewing Outbox Prevents Sending Email msnews.microsoft.com Outlook - General Queries 2 June 6th 06 09:00 PM
Outbox keeps sending email CNewman Outlook - General Queries 1 May 1st 06 05:53 PM


All times are GMT +1. The time now is 07:53 AM.


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.