Summary email needs a width limit

Looks like we are missing a max-width on the email summary post content:


With 700px max-width:

Thanks @pepa for the heads up!


There’s a code example here that constrains the width of emails sent from Discourse: Customize and style the Discourse outer email template. I’ve tested it on Litmus and seen issues on some email clients when it’s used as the outer wrapper for the summary email. I’m fairly sure those issues can be resolved.


I’ve restricted the width and centered the email content here:

From a test send:

I’ve used tables to restrict the width and center which should ensure it works with older email clients:

    <td width="650"> all email content within this td </td>

Note that a width set on a td functions more like a max-width, and content will still shrink to fit smaller devices.