Skip to main content

I'm using the intercom api to create and respond conversations of type email, when I send messages as an admin using HTML, some styles are stripped out, as a result clients can't see the HTML formatted correctly when the email is opened, Do you know why this could be? I'm seeing that css styles are removed and even using inline styles would not work, does intercom support styles in the email conversations api at all?

Hey ​@Andres! Emily here from Support Engineering at Intercom 👋🏼

When using the Intercom API to create and respond to email conversations with HTML, it's important to note that while you can write HTML and styles using style tags and classes, Intercom will inline your CSS styles to the appropriate elements when the email is sent. However, responsive styles should not be inlined, as they will be applied by default rather than at a specific screen width.

Additionally, the API supports certain HTML tags for formatting, such as bold, italics, and lists, but not CSS for styling. You can use HTML elements like paragraphs, line breaks, headings (only <h1> and <h2> tags), links, images (which will be uploaded to Intercom and displayed using an Intercom link), and list tags (which must contain at least one non-empty <li> element).

Some styling may work for some users, but this is not officially supported by Intercom.

Hope this helps answer some questions 😁


Reply