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 Antworten
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
EXPERTE
beantwortet vor 10 Monaten
0

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

beantwortet vor 10 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen