Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Integrating Outlook with VFP
Message
From
29/01/1999 15:04:51
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00181950
Message ID:
00181974
Views:
12
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform