Preflight for HTML email
08-Mar-2024 482
For the best HTML e-mail delivery results, CSS should be inline. This is a huge pain and a simple newsletter becomes un-managable very quickly. This script is my solution.CSS styles are converted to inline style attributesChecks style and link[rel=stylesheet] tags and preserves existing inline attributesRelative paths are converted to absolute pathsChecks links in href, src and CSS url('')CSS properties are checked against e-mail client capabilitiesBased on the Email Standards Project's guidesA plain text version is created (optional).
Preflight for HTML email #ruby #rubydeveloper #rubyonrails #Preflight #email https://rubyonrails.ba/link/preflight-for-html-email