Thanks Friend,
It worked exactly the way i wanted.
Aashish
>>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