Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Outlook
Message
 
To
09/12/2004 18:08:09
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Environment versions
Visual FoxPro:
VFP 8
OS:
Windows XP
Network:
Windows NT
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00968176
Message ID:
00968407
Views:
9
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform