sending mailing with redemption

  • Thread starter Thread starter John
  • Start date Start date
J

John

I posted this before in outlook.addins but i think this the more apropiate
group

The used language is powerbuilder but i can imagine the same will happen
with vb

I use redemption to send mailings.

I send emails to customers with a word document attachment.
What happens is the following on 1 machine the programs stops at this line
after sending 100 emails
//Attachments
FOR li_teller = 1 TO upperbound(as_attachment[])
IF fileexists(as_attachment[li_teller]) THEN
--> iole_olSafeApp.Item.attachments.add(as_attachment[li_teller])
END IF
NEXT


iole_olSafeApp.Send
DESTROY iole_olSafeApp
RETURN 1

On other machines it stops at 50 or 43 lines, but basiqly you can be sure it
stops/hangs before complention of the whole mailing.

We checked the external settings like email address availability of the
attachment and they are all ok.

Also did we check the system resources of the machine but they seem ok also,
no memory leak.

Anyone an idea?????

Tia
John
 
Try to drop the ".item" part
iole_olSafeApp.attachments.add(as_attachment[li_teller])

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

It worked....................

If you have time could you explain why the "item" part was generating that
error after X mails.


Tia
John

Dmitry Streblechenko (MVP) said:
Try to drop the ".item" part
iole_olSafeApp.attachments.add(as_attachment[li_teller])

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


John said:
I posted this before in outlook.addins but i think this the more apropiate
group

The used language is powerbuilder but i can imagine the same will happen
with vb

I use redemption to send mailings.

I send emails to customers with a word document attachment.
What happens is the following on 1 machine the programs stops at this line
after sending 100 emails
//Attachments
FOR li_teller = 1 TO upperbound(as_attachment[])
IF fileexists(as_attachment[li_teller]) THEN
--> iole_olSafeApp.Item.attachments.add(as_attachment[li_teller])
END IF
NEXT


iole_olSafeApp.Send
DESTROY iole_olSafeApp
RETURN 1

On other machines it stops at 50 or 43 lines, but basiqly you can be
sure
it
stops/hangs before complention of the whole mailing.

We checked the external settings like email address availability of the
attachment and they are all ok.

Also did we check the system resources of the machine but they seem ok also,
no memory leak.

Anyone an idea?????

Tia
John
 
If you are using the ".Item" part, that means the call was going to the
original OOM object assignd to the Item property. By dropping it, you ensure
that the call goes to Redemption. So it looks like Redemption works better
than OOM :-)

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


John said:
Thanx DMitry,

It worked....................

If you have time could you explain why the "item" part was generating that
error after X mails.


Tia
John

Dmitry Streblechenko (MVP) said:
Try to drop the ".item" part
iole_olSafeApp.attachments.add(as_attachment[li_teller])

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


John said:
I posted this before in outlook.addins but i think this the more apropiate
group

The used language is powerbuilder but i can imagine the same will happen
with vb

I use redemption to send mailings.

I send emails to customers with a word document attachment.
What happens is the following on 1 machine the programs stops at this line
after sending 100 emails
//Attachments
FOR li_teller = 1 TO upperbound(as_attachment[])
IF fileexists(as_attachment[li_teller]) THEN
--> iole_olSafeApp.Item.attachments.add(as_attachment[li_teller])
END IF
NEXT


iole_olSafeApp.Send
DESTROY iole_olSafeApp
RETURN 1

On other machines it stops at 50 or 43 lines, but basiqly you can be
sure
it
stops/hangs before complention of the whole mailing.

We checked the external settings like email address availability of the
attachment and they are all ok.

Also did we check the system resources of the machine but they seem ok also,
no memory leak.

Anyone an idea?????

Tia
John
 
Back
Top