Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating automatic E-mail
Message
From
07/03/2002 12:53:14
 
 
To
07/03/2002 12:20:59
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00629697
Message ID:
00629728
Views:
19
Hello Scott.

Can anyone point me in the right direction? I am trying to start an E-mail using Outlook 2000 and I want to have the E-mail addressed based on the value of a textbox.

How's this to get you started?
oOutLook = CREATEOBJECT( 'Outlook.Application' )
oNameSpace = oOutlook.GetNameSpace( 'MAPI' )
*** Create a new mail item
oMsg = oOutlook.CreateItem( olMailItem )
WITH oMsg
  *** Set the required message properties
  .Subject = ( 'Fox Rocks!' )
  .Body = ( 'Hi Ken. You are doing a great job. Keep up the good work!' )
  *** Add the recipients
  .Recipients.Add( 'KLevy@Microsoft.com' )
  .Recipients[ 1 ].Type = 1
  *** And send it off
  .Send()
ENDWITH
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform