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
Divers
Thread ID:
00768102
Message ID:
00768114
Vues:
16
Russell
Why don't you enter all your recipients in just one string ( separated by a semicolon ) into the first part? ( i.e in the "To" clause )?

Jaime

>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
Why do programs stop working correctly as soon as you leave the Fox?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform