Error while sending mails to muliple recipients using Redemption

P

Prasad Bhagwat

Hi,

I am sending mails to over 1000 conatcts from my application mailing list.
The application is developed in VB 6.0.
Application has its own mailing list.
I am sending mails to that contacts using Redemption Safemailitem.
Before that I am taking that contact in Outlook Mailitem and after
resolving it ,
passing to the Safemailiem.And then sending it.

I am using Redention dll version 3.4.0.402
But after sending mails to 410 or later contacts I am getting following
error

err.Number -2147467259
err.Description Could not resolve the message recipients
err.Source Redemption.SafeMailItem

after that I am getting this error when I try to send it again and while
sending for
1 st contact.

and when close the application and outlook instance and reopenthe both

I am getting the error after 410 or later contacts


Do u have any solution for this error

Waiting for your kind reply

Thanks in advance


Prasad Bhagwat
 
D

Dmitry Streblechenko

Try to create a Redemption object (any object, such as Redemption.MAPIUtils)
when your app starts and keep it referenced in a global variable until your
app terminates - each Redemption object calls MAPIInitialize when created
and MAPIUninitialize when destroyed. Some versions of Outlook have a problem
when MAPIInitialize/MAPIUninitialize are called too many times. Having a
global object ensures that MAPI is initialized only once.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
P

Prasad Bhagwat

Thanks Dmitry,

It works fine with your solution.

Thanks a lot again.


Prasad Bhagwat
 

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