question

neil-bouvier4849 avatar image
neil-bouvier4849 asked John Wang commented

Fax: Node.js ringcentral sdk. html document altered by fax. Any ideas?

Faxing HTML documents. Nothing complex, yet the documents are oddly malformed when received.

faxsdk
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

John Wang avatar image
John Wang answered
It's hard to debug this without some data on what you're sending.

Please provide a sample malformed fax HTML you are sending.
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Tyler Liu avatar image
Tyler Liu answered
If the HTML file has a companion CSS file, please inline it. Paste the CSS content into a <style> tag in HTML.

Please provide a sample file if it still doesn't work.
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

neil-bouvier4849 avatar image
neil-bouvier4849 answered
No CSS.  I've been emailing this HTML document for quite a while.  Ringcentral appears to take issue with nested tables.  The pattern is evident and should only take a few hours to recode and test.
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Tyler Liu avatar image
Tyler Liu answered
I've been emailing this HTML document for quite a while
Are you saying that it used to work but stopped working recently?

Ringcentral appears to take issue with nested tables.  The pattern is evident and should only take a few hours to recode and test.
So this issue could be reproduced with an HTML file with nested table?
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

neil-bouvier4849 avatar image
neil-bouvier4849 answered
I'm working on it now.  It works perfectly when eMailed, but the nested tables fail on fax.  I have a solution.
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

neil-bouvier4849 avatar image
neil-bouvier4849 answered John Wang commented
The issue isn't the HTML, it's the base64 images.  The image emails, but does not fax.
1 comment
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

John Wang avatar image John Wang ♦♦ commented ·
Can you provide an example that does not render as desired?
0 Likes 0 ·
Tyler Liu avatar image
Tyler Liu answered
We are unable to provide you with further instructions because we don't know the detail of the issue.

Please provide us with the sample HTML and steps to reproduce the issue.
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

neil-bouvier4849 avatar image
neil-bouvier4849 answered John Wang commented
Tyler, I have a base64 string I need to include in a fax.  Is this doable?
2 comments
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Tyler Liu avatar image Tyler Liu ♦ commented ·
Not sure what you want to do. But a base64 string is still a string. You can include that in a fax as plain text (just like you send a plain text "Hello world"). The receiver of the fax has to read the base64 string you sent which might not make sense to him/her.
0 Likes 0 ·
John Wang avatar image John Wang ♦♦ commented ·
Neil, Do you mean in an image tag source or CSS like the examples below? If one approach works via email but not API for you please let us know which one.

Image tag source example:

<img src='data:image/png;base64,iVBOR...' />

CSS background example:

background-image: url(data:image/png;base64,iVBOR..)
0 Likes 0 ·

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys