Increase email size limit to 2MBby pulling in new utils

This is because GOV.UK has hit the email size limit with their
weekly digest email.
This commit is contained in:
Pea Tyczynska
2020-12-16 15:29:06 +00:00
parent 34e8da7285
commit 4fc3f95c41
4 changed files with 11 additions and 13 deletions

View File

@@ -153,7 +153,7 @@ def check_is_message_too_long(template_with_content):
)
elif template_with_content.template_type == EMAIL_TYPE:
message += (
f"Emails cannot be longer than 1000000 bytes. "
f"Emails cannot be longer than 2000000 bytes. "
f"Your message is {template_with_content.content_size_in_bytes} bytes."
)
raise BadRequestError(message=message)