Publish emails with attachments having size greater than 256kb

0

We have .net 6 application from where we are publishing email/text notification using masstransit and subscribing in another application from same solution. Publishing email with attachment is working fine if file size is less than 256kb though it's failing to publish email if attachment size exceeds 256kb size limit. The question here is how can i publish such emails with attachments exactly?

Please find the exception i am getting while publishing email with big size attachement *Amazon.SimpleNotificationService.Model.InvalidParameterException: Invalid parameter: Message too long ---> Amazon.Runtime.Internal.HttpErrorResponseException: Exception of type 'Amazon.Runtime.Internal.HttpErrorResponseException' was thrown. at Amazon.Runtime.HttpWebRequestMessage.GetResponseAsync(CancellationToken cancellationToken) *

2 Respuestas
0

Hi, there are specific libraries to have attachments up to 2 GB: can you use 1 of those languages for those big messages?

See https://docs.aws.amazon.com/sns/latest/dg/large-message-payloads.html

See also "Message publishing and batching" in https://aws.amazon.com/sns/features/

profile pictureAWS
EXPERTO
respondido hace 10 meses
0

Thank you for the quick response though unfortunately we do not use java or python.

respondido hace 10 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas