SShortSingh.
Back to feed

Building HTML email templates that render reliably in Outlook and dark mode

0
·4 views

A developer who spent over 200 hours coding newsletters for one client shares practical lessons on email HTML. Desktop Outlook on Windows uses Microsoft Word's rendering engine, so modern CSS like flexbox and grid often fails, making table-based layouts with inline styles the safer choice. Conditional comments can address Outlook-specific issues, and a main width of roughly 600 to 640 pixels is recommended. Because some email apps automatically invert colours, dark logos may vanish, so adding a light outline or padding helps, and softer colour contrasts are preferred over pure black and white. The author also advises testing in both light and dark modes before every send and using a modular template of reusable blocks to keep newsletters consistent.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Five npm packages combined reach 9,033 downloads, up 220 in a day

Combined downloads for five tracked npm packages reached 9,033 yesterday, a gain of 220 over the prior day. The largest contributor was plumber-linter at 2,763 total, followed by hexlens at 1,983 after a jump of 168 that reflects a v0.7.2 IOC export spike from November 22, as npm figures typically lag by about a day. Other gains came from environmental-peek at 1,804, react-dismiss at 1,368 following its v0.5.0 release with a useDismissAll hook, and @parasraju/plumber-mcp at 1,115. The project is 967 downloads short of its 10,000 goal, and a planned plumber-linter v1.7.0 release with config file support may be moved forward into an open evening slot.

0
ProgrammingDEV Community ·

Google Search AI Mode mở rộng cá nhân hóa với Drive và Wallet

Google vừa nâng cấp tính năng Personal Intelligence trên chế độ AI Mode của Google Search, cho phép kết nối thêm Google Drive, Google Wallet và ứng dụng Gemini. Trước đó, tính năng này chỉ liên kết với Gmail, Google Calendar và Google Photos. Với Wallet, AI chỉ được đọc siêu dữ liệu và lịch sử chi tiêu, không có quyền thực hiện giao dịch hay chuyển tiền. Google cũng bổ sung nhãn 'Personalization' để người dùng kiểm tra dữ liệu nào đã được sử dụng, và mọi tùy chọn đều ở dạng opt-in có thể tắt bất cứ lúc nào. Động thái này được xem là nỗ lực củng cố lợi thế trước các đối thủ tìm kiếm AI như OpenAI và Perplexity.

0
ProgrammingDEV Community ·

OpenRouter Prompt Leak Traced to Inference Providers, Prompting Credential Rotation Advice

On 22 November, OpenRouter removed three inference providers, revoked Zero Data Retention status from 125 endpoints, and warned customers their prompts may have been exposed. OpenRouter said its own systems were not breached; the exposure occurred within the providers, following research by Dragos that seeded roughly 2 million prompts with tracking credentials. Together AI, Phala, and Novita each disclosed incidents involving leaked prompt data, a server compromise, and a routing misconfiguration that sent some requests to an unapproved API. The author argues developers should pin trusted providers, disable automatic fallbacks, avoid putting secrets in prompts, and rotate any credentials that passed through affected providers.

0
ProgrammingDEV Community ·

StarVeil AI Comic Studio Adds Stateful Multi-Page Comics via Streamable HTTP MCP

A developer describes building a stateful AI comic creation system that exposes its tools over Streamable HTTP MCP for coding agents such as Claude Code, Cursor, and Antigravity. The author argues that stateless text-to-image APIs fail at sequential comics because character identity drifts between requests and regenerating a full page to fix one speech bubble ruins the panels already approved. The system addresses this with a four-stage state machine covering a persistent character vault, chained page rendering, region-limited edits using a three-zone bounding-box method, and art-preserving translation into six languages. The post also covers OAuth 2.1 authentication, including a JWKS issue encountered during Cloudflare Workers certification, and notes that headless automation can use revocable API keys.