RightFax and .NET?

9.8k views Asked by At

How easy is it to integrate RightFax with .NET/C#? We are considering FaxMan, Windows Fax Server also, but we came across RightFax. We basically need to be able to send faxes through a .NET App, monitor status etc.

3

There are 3 answers

1
p.campbell On BEST ANSWER

Here's some sample code for RightFax sending faxes, from this other answer, using the Right Fax COM API Library (rfcomapi.dll).

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();
1
p.campbell On

Consider also using the Fax Service in Windows. Using Windows Fax Service to Send Fax using C#

using FAXCOMLib;
using FAXCOMEXLib;

FaxServerClass fs = new FaxServerClass();
fs.Connect(“<your_computer_name>”); //specifies the machinename
object obj = fs.CreateDocument(“<your_filename>”);
FaxDoc fd = (FaxDoc)obj;
fd.FaxNumber = “<your_fax_number_to_send_to”;
fd.RecipientName = “<your_recipients_name”;
int i = fd.Send();
MessageBox.Show(i.ToString());
fs.Disconnect();
0
Brandy On

there is a notification framework from fuel9 called Boomerang that supports windows fax server. The framework has a database interface so it supports .Net and anything else that may connect to a database server. I saw that they are working on a Rightfax extension as well but we have only MS fax in our infrastructure. Boomerang has been working great for us and with few sql statements will can create an automated fax (or email, printing, ftp etc) solution.

/B