Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to send messages with OUTLOOK
Message
De
26/06/2002 07:40:01
 
 
À
26/06/2002 02:26:15
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00672333
Message ID:
00672388
Vues:
11
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform