Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MSMAPI only works with one recipient
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
MSMAPI only works with one recipient
Miscellaneous
Thread ID:
00768102
Message ID:
00768102
Views:
44
I have a class to send e-mail using MSMAPI. It works fine. Until I add a second TO or CC recipient. I get an "unspecified error" message. The code to add the first recipient is:
if not empty(this.cTo) or not empty(.cDisplayName)
   .RecipIndex       = 0
   .RecipAddress     = alltrim(this.cTo)
   .RecipType        = 1
endif
That works great. The code to add the second recipient is:
if not empty(this.cCC) or not empty(.cCCDisplayName)
   .RecipIndex       = 1
   .RecipAddress     = alltrim(this.cCC)
   .RecipType        = 2
endif
I also have some code to add attachments, but the main thing here is that everything works fine with one recipient and zero, one, or more attachments. When I let the code to add the second recipient execute, I get the "unspecified error".

Anybody see any problems with this code or have any suggestions/fixes?

Thanks,

Russell Campbell
eCost.com continues to rip people off
Check their rating at ResellerRatings.com
Next
Reply
Map
View

Click here to load this message in the networking platform