Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to send messages with OUTLOOK
Message
From
26/06/2002 07:40:01
 
 
To
26/06/2002 02:26:15
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00672333
Message ID:
00672388
Views:
10
Hello Peter.

oOutLookObject = CreateObject("Outlook.Application")
#define olMailItem                                        0
*** Constant Group: OlMailRecipientType
#define olOriginator                                      0
#define olTo                                              1
#define olCC                                              2
#define olBCC                                             3

loNameSpace = oOutlook.GetNameSpace( 'MAPI' )
*** Create a new mail item
loMsg = oOutlook.CreateItem( olMailItem )
IF VARTYPE( loMsg ) = 'O'
  WITH loMsg
    *** Set the required message properties
    .Subject = 'Keep up the good work'
    .Body = 'Hi Ken. Just wanted to tell you that I think you and the Fox team are doing a great job!'
    *** Add the recipients
    .Recipients.Add( 'KLevy@Microsoft.com' )
    .Recipients[ 1 ].Type = olTo
    *** And send it off
    .Send()
  ENDWITH
ENDIF
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform