title: Sending Fax through c#
body: <p>I am trying to develop an application which connects to our company's fax server and sends faxes. I am using <code>FAXComLib</code> for this. </p>
  
  <p>My code looks like this:</p>
  
  <pre><code>FAXCOMLib.FaxServer fs = new FAXCOMLib.FaxServer();
  fs.Connect("&lt;Remote Server Name&gt;");            
  object obj = fs.CreateDocument("FAXTEST.txt"); 
  FaxDoc fd = (FaxDoc)obj;
  fd.FaxNumber = "&lt;number&gt;";
  fd.RecipientName = "&lt;Reciepient&gt;";
  int i = fd.Send();
  fs.Disconnect();
  </code></pre>
  
  <p>The problem is that I cannot connect to the remote server. The COM object throws an error <code>hresult e_fail has been returned from a call to a COM component</code>. This only happens when I am trying to connect to the remote server.</p>
  
  <p>We are using a Multi Function Printer which has the Fax module installed on it. Can you help me figure out what could be going wrong here? or how can I debug this problem?</p>