Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Outlook
Message
 
À
09/12/2004 18:08:09
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Versions des environnements
Visual FoxPro:
VFP 8
OS:
Windows XP
Network:
Windows NT
Database:
Visual FoxPro
Divers
Thread ID:
00968176
Message ID:
00968407
Vues:
10
>I am sending e-mail using Outlook. My user is telling me that the e-mails are orginating from another person (the from address is another user)! And sure enough a reply goes to the other user. I do not reference a profile or logon info. This is the code.
>
>
>  loOutlook=CREATEOBJECT('outlook.application')
>  loSpace=loOutlook.getnamespace('mapi')
* I think it needs a login
loSpace.Logon

>  lomail=loSpace.GetDefaultFolder(6)
>  lomail.items.add()
>  newmsg=lomail.items.add()
>  lcThisr=lcRecipient
>  newmsg.recipients.add(lcThisr)
>  newmsg.subject=lcSubject
>  newmsg.body=lcBody
>  newmsg.send()
>
Imagination is more important than knowledge
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform