I don't see in your code where you connect to the fax server.
If it is local (meaning you are sending the fax from the same machine as the faxserver try using this:
x.connect(.)
>I using Microsoft Fax with winXP SP2 :
>
>
>when I issue send command : vfp give me ole error :
>
>ole error code 0x80070006: the handle is invalid.
>
>How could I solve the problem.
>
>Thanks.
>
>
>My Code :
>
>
>x=createobject('faxserver.faxserver')
>lcMachine = "\\"+GETWORDNUM(SYS(0),1)
>x.connect( lcMachine )
>
>FD = x.createdocument("filename")
>fd.faxnumber = '687-9870'
>fd.displayname = 'VFP Fax Message'
>fd.filename = fullpath("test.doc")
>fd.sendcoverpage = .f.
>
>fd.Send <-------- error
>