Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Outlook: syntax for making the msg visible before sendin
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01050087
Message ID:
01050088
Views:
13
Disregard... found it in the vba chm file.

Set myOlApp = CreateObject("Outlook.Application")
Set myItem = myOlApp.CreateItem(olMailItem)
myItem.Display


>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
>
Previous
Reply
Map
View

Click here to load this message in the networking platform