Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Email resolve problem
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00487303
Message ID:
00487649
Vues:
8
>When I tried to send an email, I received this error:
>OLE IDispatch Exception code 4096 from outlook:
>Outlook does not recognize one or more names.
>I tried using WITH..WITHEND and without.
>Sending a good email address worked fine.
>
>oRecip = loNew.Recipients.Add(thisform.listmgr1.array[1,i])
>With oRecip
> .Type = olTo
> If NOT .Resolve
> Messagebox("...",mb_iconstop, thisform.caption)
> .Delete
> Endif
>Endwith

Try doing the code without the shortcut object reference oRecip. I had one or two situations where that caused a problem. Some places I had to reference the entire Recipients string or it wouldn't work right. Like this:

loNew.Recipients(thisform.listmgr1.array[1,i]).delete
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform