Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating automatic E-mail
Message
De
07/03/2002 12:53:14
 
 
À
07/03/2002 12:20:59
Scott Starkey
Tindall Record Storage
Fort Worth, Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00629697
Message ID:
00629728
Vues:
11
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform