Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error member RECIPIENTS does not evaluate to an object
Message
De
03/10/2007 09:17:10
 
 
À
02/10/2007 16:09:18
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01258083
Message ID:
01258187
Vues:
21
>Periodically I get the error "member RECIPIENTS does not evaluate to an object". Below is the code that generates the error.
>
>
>
>	oOUTLOOK= Createobject('outlook.application')
>	omail=oOUTLOOK.createitem(0)
>	omail.recipients.Add('beth@workerscomp.com')
>
>
>
>The same code has worked for several year - the email address is an internal url. We send out hundreds of emails daily and occassionally that error message pop up.
>
>Anyone else get this error message or knows what it means? Any way to get around it?


My experience is that automating Outlook is always smoother is you instantiate the MAPI namespace after creating the Outlook object:
oNS = oOutlook.GetNameSpace("MAPI")
Try adding this line and see if it makes the problem go away.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform