Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems sending e-mails with the MAPI Controls 5.0

Status
Not open for further replies.

Yazster

Programmer
Sep 20, 2000
175
CA
Hi everybody,

I'm having major problems when transmitting multiple e-mails.

Here's the situation

E-mail #1:
I set the .MsgIndex to -1.
I have 5 recipients. I'm incrementing the .RECIPINDEX property by one each time, and adding the recipient name to the .RecipDisplayName property. Then, I execute the .SEND method.

E-mail #2
I have 1 recipient.
I set the .MsgIndex to -1
I add the recipient name to the RecipDisplayName property execute the .SEND method.

When sending e-mail #2, four of the five recipients of the previous e-mail are also being copied on the second e-mail.

It seems like the indexed recipients aren't being cleared.

I've even tried to Signoff from MapiSession and signon again, still the same thing.

Any ideas?

Any help would be greatly appreciated.
 
I've figured out how to do this. Using the COMPOSE method instead of setting the MSGINDEX property to -1 resets all the settings.

Thanks,
Yazster
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top