I assume that the eTransport module is correctly configured because I can send emails using FaxUtil.
My code snippet is below.
RFCOMAPILib.FaxServer fs = new RFCOMAPILib.FaxServerClass();
fs.ServerName = "SERVERNAME";
fs.UseNTAuthentication = RFCOMAPILib.BoolType.False;
fs.AuthorizationUserID = "XXX";
fs.Protocol = RFCOMAPILib.CommunicationProtocolType.cpTCPIP;
RFCOMAPILib.Fax fx = fs.Users["AAA"].Faxes.Create;
fx.HasCoversheet = RFCOMAPILib.BoolType.False;
fx.EmailSubject = "TEST";
fx.FromName = "FROM@DEST";
fx.ToName = "To The Person";
fx.ToEmailAddress = "TO@DEST";
fx.ToFaxNumber = "TO@DEST";
fx.IsINLJob = RFCOMAPILib.BoolType.True;
fx.Attachments.Add("x.pdf", RFCOMAPILib.BoolType.False);
fx.IsProductionFax = RFCOMAPILib.BoolType.True;
fx.Send();
When I do 'Show History' in faxutil, I see the following error msg:
Resulting status code (801): Not Emailed
>>There is not a valid email address in the cmddata file