HylaFax how to use it from .net application

I have a .net application that sends faxes, I am considering using hylaFAX to send faxes.

I cannot find how to call a hylafax server from .net. Is there a library or anything that I can use to call hylafax from .net?

+3
source share
3 answers
+1
source

I developed and hosted a SOAP web service (written in java and hosted on tomcat using xfire webservices) on a hylafax machine, and I named the web service from .net

- hylafax, . . , .

public class HylaFaxService{

   public String sendFax(String faxno, byte[] bytContent){
       // sendfax -n -d 5551212 -d 5551313 /etc/networktemp/f1.pdf

       // 1. save the bytContent in some temp file say /etc/networktemp/f1.pdf
       // 2. now call the hylafax sendcommand

       Runtime.getRuntime().exec("sendfax -n -d 5551212 -d 5551313 /etc/networktemp/f1.pdf");

   }
}
+1

HylaFAX is a telecommunication system for UNIX systems.

You can configure Hylafax to receive email to send a fax or set it up as a printer, and then you just print it.

But it should work in a Linux / Unix box. If you have questions, check out the hylafax mailing list. This is a bit slow, but you will get an answer in a couple of days.

0
source

Source: https://habr.com/ru/post/1714792/


All Articles