This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
William is right. You should use an external fax application. This is better because some times the phone you have calling may busy or noanswer. In this situations, you should wait for a time and try again.etc..
If you want to send faxes in a real production system, you should use an external tool. According to me, the best tool is FaxCarrier. It has an xml based integration technology like that.
<sendfax phone="123123123"> <pages> <page template="background.bmp"> <annotation text="Hello From FaxCarrier." x=10 y=100 fontsize=12> <annotation text="Sendind Fax is too easy." x=10 y=300 fontsize=10> </page> </pages> </sendfax>
Can you prepare an xml like above ? If you can, you send faxes from anywhere including Java,ASP,PHP.