![]() |
|
|
|
|
|
|
2
9th October 10:06
External User
Posts: 1
|
hi Allessandro,
There is a (scriptable) com object available for sending faxes, i.e., faxcom.dll. There are a number of webpages that discuss how to use it, you might start here "How To Send a Fax from an ASP Page on Windows 2000": http://support.microsoft.com/kb/303647 Here is the code that ms suggests: --- <code> --- Function SendFax(FileName As Variant, FaxMachine As Variant, FaxNumber As Variant) Set FaxServer = CreateObject("FaxServer.FaxServer") FaxServer.Connect ("\\" & FaxMachine) Set FaxDoc = FaxServer.CreateDocument(FileName) With FaxDoc .FaxNumber = FaxNumber .Send End With Set FaxDoc = Nothing Set FaxServer = Nothing End Function --- </code> --- Obviously, if converting this to vbs, you leave out the "as variant" typecasting. cheers, jw __________________________________________________ __________ You got questions? WE GOT ANSWERS!!! ..(but, no guarantee the answers will be applicable to the questions) p.s. don't show this to Eric Lippert, or you will get blasted for those "set xx = nothing" statements, which Eric asserts are totally useless... |
|