Hi Erin
Yes, we can send attachments through the RightFax Util program. The code I've used is below - just to confirm, we can send PDF and txt files using this code, it's RTF, Word 00, 03, 07 that have a problem.
Many thanks
Keith
{
RFCOMAPILib.FaxServer faxServer = new RFCOMAPILib.FaxServer();
faxServer.ServerName = "RBIQHSAPPP017";
faxServer.AuthorizationUserID = "johnsonk2";
faxServer.Protocol = RFCOMAPILib.CommunicationProtocolType.cpTCPIP;
faxServer.UseNTAuthentication = RFCOMAPILib.BoolType.False;
try
{
faxServer.OpenServer();
RFCOMAPILib.Fax fax = (RFCOMAPILib.Fax)faxServer.get_CreateObject(RFCOMAPILib.CreateObjectType.coFax);
fax.ToVoiceNumber = "123";
fax.ToName = "Keith Johnson";
fax.ToFaxNumber = "0123456789";
fax.FromName = "Keith Johnson";
fax.OwnerID = "Administrator";
fax.FromFaxNumber = "123";
fax.FromVoiceNumber = "123";
fax.Attachments.Add(@"c:\faxtest\merge00.doc", RFCOMAPILib.BoolType.False); // Word 2000 document, Word 2002 installed on server
string faxCoverSheet = "This is a test.";
fax.set_CoverSheetNotes(1, faxCoverSheet);
fax.Send();
string faxHandle = Convert.ToString(fax.Handle);
if (fax.FaxErrorCode.ToString() != "fecNone")
{
MessageBox.Show("Error occurred: " + fax.FaxErrorCode.ToString(), this.Text.ToString());
}
else
{
MessageBox.Show("Fax sent successfully", this.Text.ToString());
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message.ToString(), this.Text.ToString());
}
finally
{
faxServer.CloseServer();
}
}