G
Guest
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.
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.