mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-31 23:26:23 -05:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user