Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MSMAPI only works with one recipient
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
MSMAPI only works with one recipient
Divers
Thread ID:
00768102
Message ID:
00768102
Vues:
42
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform