Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Outlook: syntax for making the msg visible before sendin
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Divers
Thread ID:
01050087
Message ID:
01050088
Vues:
16
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
>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform