RightFax和.NET?

Pra*_*bhu 7 .net c# asp.net fax rightfax

将RightFax与.NET/C#集成有多容易?我们也在考虑FaxMan,Windows传真服务器,但我们遇到了RightFax.我们基本上需要能够通过.NET App发送传真,监控状态等.

p.c*_*ell 12

以下是使用Right Fax COM API库(rfcomapi.dll)从另一个答案中发送传真的RightFax的示例代码.

RFCOMAPILib.FaxServerClass faxserver = new RFCOMAPILib.FaxServerClass();
faxserver.ServerName = "ServerName";
faxserver.Protocol = RFCOMAPILib.CommunicationProtocolType.cpNamedPipes;
faxserver.UseNTAuthentication = RFCOMAPILib.BoolType.True;
faxserver.OpenServer();

RFCOMAPILib.Fax fax = (RFCOMAPILib.Fax) faxserver.get_CreateObject(RFCOMAPILib.CreateObjectType.coFax);

// set up your 'fax' object the way you want it, below is just some sample options
fax.ToName = "John Doe";
fax.ToFaxNumber = "4255551111";
fax.ToVoiceNumber = "4255550000";
fax.ToCompany = "ACME";
fax.FromName = "My Company";
fax.FromVoiceNumber = "4255552222";

fax.Send();
Run Code Online (Sandbox Code Playgroud)