Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Integrating Outlook with VFP
Message
De
29/01/1999 15:04:51
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00181950
Message ID:
00181974
Vues:
13
>I wish to control outlook from vfp.
>I m successful in passing my memo field to the body of mail but failed to pass the email address in To: column.
>Any help.
>Thanks

AAshish

On a form I have a edit box and a send button (plus the mapi system buttons) that I use for my users to email me questions and comments from within the system itself.

The user types in their comments or questions in the edit box then click the send button. Here is the code in the send button:

thisform.session.signon()

IF thisform.session.sessionid > 0
thisform.message.sessionid=thisform.session.sessionid
thisform.message.compose
thisform.message.recipdisplayname='Rushton, Stephen T'
** name as it is in outlook. You can also use a variable here
thisform.message.resolvename
thisform.message.reciptype=1
thisform.message.msgsubject = 'Question' ** subject line
thisform.message.msgnotetext = Thisform.edtQuestion.value
thisform.message.send(0)
** No interface required. use (1) to ask for names
thisform.session.signoff
=messagebox('Message has been delivered')
ENDIF


HTH
Stephen Rushton Jr.
Stephen.T.Rushton@lmco.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform