I am sending letters whose contents are html fragments. How do I send styles with it with html code? Styles are in a separate file. And, in general, is it possible?

    1 answer 1

    Email support for CSS styles

    A set of rules for the layout of emails

    Use table layout instead of block layout, image instead of blocks with a background image. It is impossible to connect css-files, you need to transfer all styles to the HTML-attribute style.

    I advise you to first flip the body of the letter, following the rules from the second link, but using the css-file, and then use a parser that converts HTML with external css to HTML with inline styles (for this, styles from the css-file need to be defined in the <style> tag, or place in the html network with css and give the parser the URL of this page).