S3 Email Images: Payload Alerts for HTML Size and Deliverability
Consider a proposed page for a customer support service: the email payload budget has been exceeded, and the on-call engineer sees a rising count of oversized messages containing customer screenshots. This is a design exercise, not an incident report. The useful alert includes the final message size, the number of images, their moderation state, and whether the template attached the bytes or…
The report discusses the importance of managing email payload size in support services, particularly when customer screenshots are included. It emphasizes that exceeding the payload budget can lead to deliverability issues and spam risks. The key recommendation is to host approved screenshots instead of attaching them, as this reduces the overall email size and improves deliverability.
However, hosted images can also disappear if a client blocks remote content, so it's crucial to test the user experience with images disabled. The report suggests measuring both the upload bytes (ingress capacity) and the final serialized message bytes (what the mail pipeline must carry) to ensure compliance with the team's payload budget.
It also highlights the need for a moderation gate before deciding whether to host or attach images, as this gate helps maintain the quality and relevance of the support instructions.
Brief written by urgent.news; may contain errors — check the original.
Source: dev.to