Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Outlook: syntax for making the msg visible before sending
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Outlook: syntax for making the msg visible before sending
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01050087
Message ID:
01050087
Views:
51
I am trying to create an outlook msg and make the msg visible w/o sending it. Was hoping to use "oMessage.visible = .t." but no go. Suggestions?
IF VarType(oOutlook) <> "O"
   RELEASE oOutlook
   PUBLIC oOutlook
   oOutlook = CreateObject("Outlook.Application")
ENDIF
oNameSpace = oOutlook.GetNameSpace("MAPI")
oMessage   = oOutlook.CreateItem( olMailItem )

WITH oMessage
   .Subject = "Subject"
   .Body = "The monthly staff meeting... "	
   oRecipient = .Recipients.Add( "&cAddr." )
   IF FILE(cFile)
      .Attachments.Add( cFile )	
   ENDIF
   .visible    && doesnt like this
   * .Send()
ENDWITH
Next
Reply
Map
View

Click here to load this message in the networking platform