I am using API 2.5 to send FAX but the first attempt failed with this error
Error Code: R225
Error: The text file could not be translated to fax by the system. Please verify your document format.
And the second attempt was successful but the contents were not readable.
Here is part of my code
sqlAPI.JSS.DocDataType DocData = new sqlAPI.JSS.DocDataType();
string body = string.Empty;
body = File.ReadAllText(attachmentFileName);
DocData.Value = System.Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(body));
JS_Documents[0].Item = DocData;
sqlAPI.JSS.EncodableStringType myFileName = new sqlAPI.JSS.EncodableStringType();
myFileName.Value = "body.txt";
JS_Documents[0].Filename = myFileName;
JS_Documents[0].DocType = "text";
JS_Documents[0].ItemElementName = sqlAPI.JSS.ItemChoiceType.DocData;
JS_Documents[0].@ref = "Doc1";