Sample VB program to send a attachment.
---------
Dim FaxServer As New FAXCOMEXLib.FaxServer
FaxServer.Connect ("testserver")
Dim FaxDocument As New FAXCOMEXLib.FaxDocument
FaxDocument.Body = "C:\tmp.txt"
Call FaxDocument.Recipients.Add("1022", "Test Fax")
FaxDocument.Subject = "subject"
FaxDocument.CoverPageType = fcptNONE
FaxDocument.DocumentName = "Name"
FaxDocument.Priority = fptNORMAL
Dim sender As FAXCOMEXLib.FaxSender
FaxDocument.sender.LoadDefaultSender
FaxDocument.Submit ("")
MSDN Link:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fax/faxabout_18s3.asp
--
Loganatr [MSFT]
Microsoft Printing, Imaging and Fax Team
This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.'