Repository navigation
v1.4.1 - centred email container
Emails now go out in a centred container instead of edge-to-edge.
The message was sent as a bare HTML fragment, so it stretched to whatever width the reading pane happened to be - very long lines on a desktop client, and an amateur look beside anything built from a template.
It is now wrapped in the structure email clients have supported reliably for two decades: an outer table at full width carrying the page background, and an inner table capped at 600px centred inside it. Tables rather than flexbox because Outlook renders through Word, and inline styles rather than a stylesheet because Gmail strips <style> blocks.
Configurable under Settings -> Email layout
- Centred container on or off
- Content width (default 600px)
- Page background and card background, as hex colours
- Corner radius
Content that is already a complete HTML document is left alone rather than nested inside a second shell, so a pasted template keeps its own layout.
Also fixes two regular expressions whose word boundaries had been written as a literal backspace byte, which made the structured-content guard match nothing - a table layout was being passed through wpautop on every render.
No schema change.
Tested up to: 6.8
Installing
Download techzapp-crm.zip below. Do not use the auto-generated source archives - they omit vendor/ and the plugin will not load.