- D365 F&O (Cloud-hosted)
- Email provider: SMTP (Exchange Online)
- Email client: Outlook Desktop
I built an HTML email template using a table-based layout with fully inline styles (no external CSS, no JavaScript) — following the standard best practices for email HTML. The template renders correctly when previewed outside of D365. However, when sent through the Workflow engine, the final email in Outlook shows unexpected behavior.
- Large unexpected whitespace gaps between sections (appears to be caused by `<br>` tags injected automatically by D365 before sending)
- The layout does not occupy the full available width of the Outlook email body
- Certain inline styles (width, margin, padding, background-color) appear to be ignored or overridden
- The email is triggered by standard Workflow notifications — no custom X++ code is involved
- There is no opportunity to intercept or modify the HTML at runtime
- The template is stored and uploaded via System Email Templates
1. Is the Workflow email framework known to inject or modify the HTML (e.g. adding `<br>` tags or wrapping the content) before sending?
2. Is there any supported way to prevent this automatic HTML modification?
3. Are there documented best practices for controlling layout when using Workflow HTML email templates in Outlook?
4. Is a full-width / edge-to-edge layout achievable within D365 Workflow emails, or is this a known limitation of the framework or Outlook itself?

Report
All responses (
Answers (